How to remove List Separator lines in SwiftUI 2.0 in iOS 14

后端 未结 6 735
谎友^
谎友^ 2020-12-15 17:07

So the question is pretty simple and it\'s in the title. I want to remove the line separator in SwiftUI iOS 14. Previously, I was using UITableView().appearance().sep

6条回答
  •  抹茶落季
    2020-12-15 17:50

    If you don't have a lot of cells, and therefore don't need to rely on a LazyVStack for performance, you can fallback to a ScrollView + VStack:

    ScrollView {
      VStack {
        Row1()
        Row2()
        Row3()
      }
    }
    

提交回复
热议问题