We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have the same problem, which is described in the link below. https://forums.developer.apple.com/forums/thread/693137 In short:
Main:
@main struct ARVisioApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var delegate @StateObject private var userStateViewModel = UserStateViewModel(networkMonitor: NetworkMonitor()) var body: some Scene { WindowGroup { NavigationViewCoordinator(AuthenticationCoordinator(userStateViewModel: userStateViewModel)).view() } .modelContainer(for: ARObject.self) } }
AuthenticationCoordinator:
final class AuthenticationCoordinator: NavigationCoordinatable { let stack = NavigationStack(initial: \AuthenticationCoordinator.start) var userStateViewModel: UserStateViewModel init(userStateViewModel: UserStateViewModel) { self.userStateViewModel = userStateViewModel } @Root var start = makeStart @Route(.push) var signUp = makeSignUp @Route(.push) var forgotPassword = makeForgotPassword }
AuthenticationCoordinator+Factory:
extension AuthenticationCoordinator { @ViewBuilder func makeStart() -> some View { LoginView() .environmentObject(userStateViewModel) } @ViewBuilder func makeSignUp() -> some View { SignUpView() .environmentObject(userStateViewModel) } @ViewBuilder func makeForgotPassword() -> some View { ForgotPasswordView() .environmentObject(userStateViewModel) } }
Could you please tell me how this problem can be solved? Without Stinsen, using NavigationView and NavigationStack, everything works.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I have the same problem, which is described in the link below.
https://forums.developer.apple.com/forums/thread/693137
In short:
Main:
AuthenticationCoordinator:
AuthenticationCoordinator+Factory:
Could you please tell me how this problem can be solved?
Without Stinsen, using NavigationView and NavigationStack, everything works.
The text was updated successfully, but these errors were encountered: