a guest Aug 18th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- extension UIViewController
- static func instantiate<ViewController: UIViewController>(_ storyboardName: UIStoryboard.Name,
- _ viewControllerType: ViewController.Type) -> ViewController
- let storyboard = UIStoryboard(name: storyboardName.rawValue, bundle: nil)
- return storyboard.instantiateViewController(withIdentifier: String(describing: ViewController.self)) as! ViewController
RAW Paste Data