I ran into the same problem and was able to resolve it by replacing the "NavigationLink(value:" with a button instead:
// Used for programmatic navigation
@EnvironmentObject var router: Router
Button {
router.path.append(SettingsView())
} label: {
Label("Settings", systemImage: "gearshape")
}
class Router: ObservableObject {
@Published var path = [Destination]()
func goBack() {
// Navigate back to the previous view
path.removeLast()
}
func goToRoot() {
// Navigate back all the way to the root view
path = []
}
}
Post
Replies
Boosts
Views
Activity
In the AskApple Q&A session on Maps I confirmed that 3D satellite is only available for some regions. That's totally understandable, so I'd like to programmatically disable the 3D feature in locations where 3D views are not supported. Unfortunately the AskApple Q&A also indicated that there is not currently a way to identify whether 3D satellite is available at a certain location. I submitted a enhancement suggestion to Apple but at this point there's no way to programmatically disable 3D.