SwiftUI NavigationButton without the disclosure indicator?

前端 未结 16 990
不知归路
不知归路 2020-12-02 12:04

When making a List with a row that pushes to a new view, SwiftUI adds a disclosure indicator \">\" automatically? How do I remove it if I don\'t want it?

            


        
16条回答
  •  感情败类
    2020-12-02 13:03

    The easiest one. The content for each item in the list.

    ZStack {
       NavigationLink(destination: DetailView()) {
           EmptyView()
       }.hidden()
       RowView()
    }
    

提交回复
热议问题