Reading time: 2 min

This recipe shows how to implement a custom separator/divider in any SwiftUI list feeded by a ForEach - like VStack, LazyVStack, HStack, LazyHStack, etc. The end result looks like this:

ezgif-2-c66ddfeec0a2

The gist of the recipe is to implement a custom ForEach that inserts separators between items. It...

Continue Reading...