Created
September 2, 2017 14:33
-
-
Save Fahrni/537fd42c38882a007a1c506369f3f2c6 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
extension OptionsViewController { | |
class func create(completionBlock: @escaping OptionsCompletionHandler) -> UIViewController? { | |
let storyboard = UIStoryboard(name: "Options", bundle: nil) | |
guard let vc = | |
storyboard.instantiateViewController(withIdentifier:"OptionsViewController") as? OptionsViewController else { | |
return nil | |
} | |
vc.completionBlock = completionBlock | |
return vc | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment