Created
February 9, 2017 09:22
-
-
Save szotp/34cc9189261650324024a6491d05628d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseViewController : UIViewController { | |
@available(*, deprecated, message: "Use coordinator.") | |
override var navigationController: UINavigationController? { | |
return super.navigationController | |
} | |
@available(*, deprecated, message: "Use coordinator.") | |
override var presentedViewController: UIViewController? { | |
return super.presentedViewController | |
} | |
@available(*, deprecated, message: "Use coordinator.") | |
override var presentingViewController: UIViewController? { | |
return super.presentingViewController | |
} | |
@available(*, deprecated, message: "Use coordinator.") | |
override func present(_ viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)? = nil) { | |
super.present(viewControllerToPresent, animated: flag, completion: completion) | |
} | |
@available(*, deprecated, message: "Use coordinator.") | |
override var tabBarController: UITabBarController? { | |
return super.tabBarController | |
} | |
@available(*, deprecated, message: "Use coordinator.") | |
override func performSegue(withIdentifier identifier: String, sender: Any?) { | |
super.performSegue(withIdentifier: identifier, sender: sender) | |
} | |
@available(*, deprecated, message: "Use coordinator.") | |
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
super.prepare(for: segue, sender: sender) | |
} | |
@available(*, deprecated, message: "Use coordinator.") | |
override var parent: UIViewController? { | |
return super.parent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment