Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active Mar 30, 2019
Embed
What would you like to do?
extension UIStoryboard {
class var main: UIStoryboard {
return UIStoryboard(name: "Main", bundle: nil)
}
}
let viewController = UIStoryboard.main.instantiateViewController(withType: ContactsViewController.self)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment