From 07a751a2378b4d2bcf6a2740b81264e862e60c6a Mon Sep 17 00:00:00 2001 From: Davide Date: Wed, 23 Oct 2024 15:46:00 +0200 Subject: [PATCH] Fix environment scope for .navigationPath on iOS Broken in #749 --- .../Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift b/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift index a6c15b37..c0690c0d 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift @@ -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) } }