Move error handler to AppCoordinator
This commit is contained in:
parent
0fd544348f
commit
f8655b09af
|
@ -98,6 +98,7 @@ public struct AppCoordinator: View, AppCoordinatorConforming, SizeClassProviding
|
||||||
options: modalRoute?.options(),
|
options: modalRoute?.options(),
|
||||||
content: modalDestination
|
content: modalDestination
|
||||||
)
|
)
|
||||||
|
.withErrorHandler(errorHandler)
|
||||||
.onChange(of: interactiveManager.isPresented) {
|
.onChange(of: interactiveManager.isPresented) {
|
||||||
modalRoute = $0 ? .interactiveLogin : nil
|
modalRoute = $0 ? .interactiveLogin : nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,6 @@ struct ProfileContainerView: View, Routable {
|
||||||
errorHandler: errorHandler
|
errorHandler: errorHandler
|
||||||
))
|
))
|
||||||
.navigationTitle(Strings.Unlocalized.appName)
|
.navigationTitle(Strings.Unlocalized.appName)
|
||||||
.withErrorHandler(errorHandler)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue