SwiftUI: como remover o acento circunflexo diretamente no NavigationLink que está dentro de uma lista

Cong Toan Le

Eu tenho um problema sobre NavigationLinkno SwiftUI. Eu tenho um Listrestaurante e NavigationLinkdentro dele. Tentei remover o cursor à direita da seção NavigationLink, mas não tive sucesso

Tentei remover o cursor usando, buttonStylemas não funcionou.

List(vm.restaurants) { (restaurant: Restaurant) in
   NavigationLink(destination: ResDetailView(restaurant: restaurant)) {
        RestaurantRow(life: life)
   }.buttonStyle(PlainButtonStyle())
}

insira a descrição da imagem aqui

Chris

você pode fazer assim:

var body: some View {
        NavigationView() {
            List(menu, id: \.self) { section in

                VStack{
                    Text(section.name)
                    NavigationLink(destination: Dest()) {
                        EmptyView()
                    }
                }
            }
        }

Este artigo é coletado da Internet.

Se houver alguma infração, entre em [email protected] Delete.

editar em
0

deixe-me dizer algumas palavras

0comentários
loginDepois de participar da revisão

Artigos relacionados

TOP lista

quentelabel

Arquivo