Hello,
For some reason my NavigationLinks are only working on long press as of updating to Xcode 11.4.1. Here's a snippet of my view:
struct MainView: View {
@EnvironmentObject var user: UserObservable
var body: some View {
VStack {
NavigationView {
List(user.items, id: \.self) { item in
NavigationLink(destination: itemView(item: item)) {
Text(item.name)
}
}
.navigationBarTitle("\(user.displayName)'s items")
.navigationBarItems(leading: AddItemViewButton().environmentObject(user),
trailing: MainViewActionSheet().environmentObject(user))
}
}
}
}
Quick tapping on the links doesn't do anything, but pressing and holding then releasing works as normal.
I've also asked this on StackOverflow: https://stackoverflow.com/questions/61262352/navigationlink-only-works-on-long-press-swiftui
Anyone else having this issue or know of a fix? Thank you!