0

I have a list in iOS 14 / Xcode 12

Im using the following/tried the following to hide the little arrows in the corner:

.listRowInsets(EdgeInsets())
.background(Color.white)
.listStyle(PlainListStyle())][1]][1]

enter image description here

Gurmukh Singh
  • 1,875
  • 3
  • 24
  • 62

2 Answers2

0

the easiest way to remove the arrow i think is to get the NavigationLink out of the List and use the tag or isActive initialiser of NavigationLink to define whether or not the link should be activated

Aleyam
  • 1,215
  • 1
  • 14
  • 14
-1

Hey! You need to hide the navigation link. Try This Code Below...

NavigationLink(destination: DetailView(item: yourItem)) {  //Your Nav Link
    EmptyView()
}.frame(width:0).opacity(0) //Hide Your Link Programmatically
Dc7
  • 1,405
  • 1
  • 10
  • 16