From f8655b09af96a2707f8d7aee7006536a36ce73e1 Mon Sep 17 00:00:00 2001 From: Davide Date: Fri, 6 Dec 2024 10:26:27 +0100 Subject: [PATCH] Move error handler to AppCoordinator --- Library/Sources/AppUIMain/Views/App/AppCoordinator.swift | 1 + Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Sources/AppUIMain/Views/App/AppCoordinator.swift b/Library/Sources/AppUIMain/Views/App/AppCoordinator.swift index a2467ad3..453e64b4 100644 --- a/Library/Sources/AppUIMain/Views/App/AppCoordinator.swift +++ b/Library/Sources/AppUIMain/Views/App/AppCoordinator.swift @@ -98,6 +98,7 @@ public struct AppCoordinator: View, AppCoordinatorConforming, SizeClassProviding options: modalRoute?.options(), content: modalDestination ) + .withErrorHandler(errorHandler) .onChange(of: interactiveManager.isPresented) { modalRoute = $0 ? .interactiveLogin : nil } diff --git a/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift b/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift index b07c7c8e..c1d47609 100644 --- a/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift +++ b/Library/Sources/AppUIMain/Views/App/ProfileContainerView.swift @@ -59,7 +59,6 @@ struct ProfileContainerView: View, Routable { errorHandler: errorHandler )) .navigationTitle(Strings.Unlocalized.appName) - .withErrorHandler(errorHandler) } }