Fix environment scope for .navigationPath on iOS

Broken in #749
This commit is contained in:
Davide 2024-10-23 15:46:00 +02:00
parent ee8ef34f06
commit 07a751a237
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,6 @@ struct ProfileEditView: View, Routable {
.navigationTitle(Strings.Global.profile)
.navigationBarBackButtonHidden(true)
.navigationDestination(for: NavigationRoute.self, destination: pushDestination)
.environment(\.navigationPath, $path)
}
}
@ -155,6 +154,7 @@ private extension ProfileEditView {
moduleId: moduleId,
moduleViewFactory: moduleViewFactory
)
.environment(\.navigationPath, $path)
}
}