@@ -66,19 +66,19 @@ public extension Router {
6666
6767public extension Router {
6868 // MARK: Presenting modals
69- func presentModal( _ viewController: UIViewController , retaining coordinator: Coordinating , animated: Bool = true , dismissHandler: ( ( ) -> Void ) ? = nil ) {
69+ func presentModal( _ viewController: UIViewController , retaining coordinator: Coordinating , animated: Bool = true , presentationStyle : UIModalPresentationStyle = . fullScreen , dismissHandler: ( ( ) -> Void ) ? = nil ) {
7070 coordinator. appCoordinator. pushCoordinator ( coordinator)
71- presentModal ( viewController, animated: animated) { [ weak coordinator] in
71+ presentModal ( viewController, animated: animated, presentationStyle : presentationStyle ) { [ weak coordinator] in
7272 dismissHandler ? ( )
7373 if let coordinator = coordinator {
7474 coordinator. appCoordinator. popCoordinator ( coordinator)
7575 }
7676 }
7777 }
7878
79- func presentModal( _ router: Router , retaining coordinator: Coordinating , animated: Bool = true , dismissHandler: ( ( ) -> Void ) ? = nil ) {
79+ func presentModal( _ router: Router , retaining coordinator: Coordinating , animated: Bool = true , presentationStyle : UIModalPresentationStyle = . fullScreen , dismissHandler: ( ( ) -> Void ) ? = nil ) {
8080 coordinator. appCoordinator. pushCoordinator ( coordinator)
81- presentModal ( router, animated: animated) { [ weak coordinator] in
81+ presentModal ( router, animated: animated, presentationStyle : presentationStyle ) { [ weak coordinator] in
8282 dismissHandler ? ( )
8383 if let coordinator = coordinator {
8484 coordinator. appCoordinator. popCoordinator ( coordinator)
0 commit comments