0

From this question I know how to remove all separators from the List: How to remove "row" separators from a List in SwiftUI?

But my list has multiple sections and I only want to remove the separators in a single section/row.

Anyone knows how we can do that with SwiftUI under iOS 13.

Edit 1:

I already tried to remove all separators and add a small rectangle as a separator where I need (as suggested by @Asperi), but then I have a problem with default editing mode, the UI is off.

enter image description here

Peacemoon
  • 3,198
  • 4
  • 32
  • 56
  • Remove default, add programmatically own separator (just 1pt Rectangle or Divider, etc) where needed. – Asperi Aug 18 '20 at 04:39
  • @Asperi forget to say that I tried that already but the UI in editing mode is off. I edited my question. – Peacemoon Aug 18 '20 at 04:57

1 Answers1

-1

Try this

.onAppear { UITableView.appearance().separatorStyle = .none } 
Joannes
  • 2,569
  • 3
  • 17
  • 39