@StateObject object store in global, and will not dealloc But it can be override and then call deinit.
Post
Replies
Boosts
Views
Activity
You should have some delay.
Why export wav format that can't play, but caf format is OK?
15.4 current is beta version
Anyone has tested it using iOS 15.4 RC?
CloudKit also not work
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?
The old API not work well.
NavigationLink("About") { AboutView() }
But the new API works.
NavigationLink("About", value: .about)