diff options
| author | Jon Petersson <jon.petersson@kvadrat.se> | 2023-08-23 15:38:12 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2023-09-13 16:26:20 +0200 |
| commit | f47bbebe41337e471a602f969a05dd06e8904779 (patch) | |
| tree | d01938a194efeac8bebf10616b31dbd23bb47f04 /ios/RoutingTests | |
| parent | c0ee7f5b8686a4ed67cec01b574a43c7e9ef0287 (diff) | |
| download | mullvadvpn-f47bbebe41337e471a602f969a05dd06e8904779.tar.xz mullvadvpn-f47bbebe41337e471a602f969a05dd06e8904779.zip | |
Coordinate alert presentation by integrating it into routing system
Diffstat (limited to 'ios/RoutingTests')
| -rw-r--r-- | ios/RoutingTests/RouterBlockDelegate.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ios/RoutingTests/RouterBlockDelegate.swift b/ios/RoutingTests/RouterBlockDelegate.swift index b1c1f58908..977454b7e4 100644 --- a/ios/RoutingTests/RouterBlockDelegate.swift +++ b/ios/RoutingTests/RouterBlockDelegate.swift @@ -10,7 +10,7 @@ import Foundation import Routing class RouterBlockDelegate<RouteType: AppRouteProtocol>: ApplicationRouterDelegate { - var handleRoute: ((RouteType, Bool, (Coordinator) -> Void) -> Void)? + var handleRoute: ((RoutePresentationContext<RouteType>, Bool, (Coordinator) -> Void) -> Void)? var handleDismiss: ((RouteDismissalContext<RouteType>, () -> Void) -> Void)? var shouldPresent: ((RouteType) -> Bool)? var shouldDismiss: ((RouteDismissalContext<RouteType>) -> Bool)? @@ -18,11 +18,11 @@ class RouterBlockDelegate<RouteType: AppRouteProtocol>: ApplicationRouterDelegat func applicationRouter( _ router: ApplicationRouter<RouteType>, - route: RouteType, + presentWithContext context: RoutePresentationContext<RouteType>, animated: Bool, completion: @escaping (Coordinator) -> Void ) { - handleRoute?(route, animated, completion) ?? completion(Coordinator()) + handleRoute?(context, animated, completion) ?? completion(Coordinator()) } func applicationRouter( |
