I have a List in my SwiftUI view in order to present a presumably long list of cells. My designers want table separators to have custom length and colour.
Previously I’ve had a dirty hack to hide default separators completely (modified UITableView.appearance() separator-related values) which does not seem to work on iOS 14.
I’ve thought of using .listStyle(...) with custom ListStyle but the protocol stubs for this protocol look really scary. Is there some normal way to modify separators in List? Or is the preferable way on iOS 14 for this kind of layout would be one-column LazyVGrid inside a ScrollView?
Previously I’ve had a dirty hack to hide default separators completely (modified UITableView.appearance() separator-related values) which does not seem to work on iOS 14.
I’ve thought of using .listStyle(...) with custom ListStyle but the protocol stubs for this protocol look really scary. Is there some normal way to modify separators in List? Or is the preferable way on iOS 14 for this kind of layout would be one-column LazyVGrid inside a ScrollView?