Blog_UIStoryboardSafety
Blog_UIStoryboardSafety copied to clipboard
Example code for a blog post i wrote on Medium
I have an idea: ``` // swift 3.0 public protocol StoryboardInstantiable { } extension StoryboardInstantiable where Self: UIViewController { public static func create(of storyboard: Storyboard) -> Self { return UIStoryboard(storyboard:...
it seems that it does not work if you have multiple view controllers in a storyboard.
Great Extension will be great if integrated with SwifterSwift https://github.com/omaralbeik/SwifterSwift
Please forgive me if i did anything wrong. This is my first pull request.
Licence
This repo doesn't have a licence. Are you ok with me using this (and derivatives) for hobby projects? I liked this idea a lot!