Eu tenho um problema sobre NavigationLink
no SwiftUI. Eu tenho um List
restaurante e NavigationLink
dentro dele. Tentei remover o cursor à direita da seção NavigationLink, mas não tive sucesso
Tentei remover o cursor usando, buttonStyle
mas não funcionou.
List(vm.restaurants) { (restaurant: Restaurant) in
NavigationLink(destination: ResDetailView(restaurant: restaurant)) {
RestaurantRow(life: life)
}.buttonStyle(PlainButtonStyle())
}
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.
deixe-me dizer algumas palavras