The old API not work well.
NavigationLink("About") { AboutView() }
But the new API works.
NavigationLink("About", value: .about)
Post
Replies
Boosts
Views
Activity
I have the same problem.
@State private var path: [Route] = []
NavigationStack(path: $path) {
Button("Settings") {
path.append(.settings)
}
.navigationDestination(for: Route) { route in
if route == .setting {
SettingsView()
} else {
EmptyView()
}
}
}
If i use NavigationLink in SettingsView, and there is a @Appstorage variable in it, will lead to an infinite loop.
Can NavigationStack(with NavigationPath binding) and NavigationLink be used together?
CloudKit also not work
Anyone has tested it using iOS 15.4 RC?
15.4 current is beta version
Why export wav format that can't play, but caf format is OK?
You should have some delay.
@StateObject object store in global, and will not dealloc But it can be override and then call deinit.