So, I have the following code:
struct ContentView: View {
var body: some View {
NavigationView {
NavigationLink("Page", destination: PageView())
.font(Font.system(.largeTitle))
}
}
}
struct PageView: View {
var body: some View {
Text("Hello, world!")
}
}
When the "Page" NavigationLink is selected, you are redirected to a new screen (PageView). When you long-press (hold) the back button to go back to the main screen (ContentView), a menu appears (new feature in iOS14+):
Is there a way to disable the menu popup on a long-press gesture, using SwiftUI (without adding custom back button)?
Cheers everyone, thanks for your time!
