diff --git a/Example/stork-controller.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate b/Example/stork-controller.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate index 4d80b15..14fecc2 100644 Binary files a/Example/stork-controller.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate and b/Example/stork-controller.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Example/stork-controller/AppDelegate.swift b/Example/stork-controller/AppDelegate.swift index 168928e..5cbb2bb 100644 --- a/Example/stork-controller/AppDelegate.swift +++ b/Example/stork-controller/AppDelegate.swift @@ -7,7 +7,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - self.launch(rootViewController: Controller()) + + let navigationController = UINavigationController(rootViewController: Controller()) + self.launch(rootViewController: navigationController) + return true } diff --git a/Example/stork-controller/Controller.swift b/Example/stork-controller/Controller.swift index 678e7cf..d678a6f 100644 --- a/Example/stork-controller/Controller.swift +++ b/Example/stork-controller/Controller.swift @@ -30,7 +30,7 @@ class Controller: UIViewController { let transitionDelegate = SPStorkTransitioningDelegate() modal.transitioningDelegate = transitionDelegate modal.modalPresentationStyle = .custom - present(modal, animated: true, completion: nil) + self.present(modal, animated: true, completion: nil) } @objc func presentModalTableViewController() { @@ -38,6 +38,6 @@ class Controller: UIViewController { let transitionDelegate = SPStorkTransitioningDelegate() modal.transitioningDelegate = transitionDelegate modal.modalPresentationStyle = .custom - present(modal, animated: true, completion: nil) + self.present(modal, animated: true, completion: nil) } }