Remove extra line separators below List in SwiftUI

后端 未结 10 1867
予麋鹿
予麋鹿 2020-12-13 00:25

I\'ve created a simple List as below, but there are extra separators below it.

List {
  Text(\"Item 1\")
  Text(\"Item 2\")
  Text(\"Item 3\")
         


        
10条回答
  •  旧巷少年郎
    2020-12-13 00:36

    iOS 13 builds only:

    You can add this, for remove separator.

    UITableView.appearance().separatorColor = .clear
    

提交回复
热议问题