How to remove “row” separators/dividers from a List in SwiftUI?

前端 未结 7 2415
渐次进展
渐次进展 2020-12-05 04:35

I\'m trying to remove the "row" separators (known as dividers in SwiftUI) from a List in SwiftUI.

I went through the List document

7条回答
  •  被撕碎了的回忆
    2020-12-05 04:55

    From: Swiftui Views Mastery Book SwiftUI 2.0 Mark Moeykens

    .listStyle(SidebarListStyle()) # IOS 14
    

    You can apply this new list style which will remove the separator lines.

提交回复
热议问题