Created
July 15, 2019 01:43
-
-
Save js51/57fc5c2c3d13b2629bd3baf12352176e to your computer and use it in GitHub Desktop.
macOS init Window Controller from Storyboard
This file contains hidden or 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
| lazy var myWindowController: MyWindowController = { | |
| let storyboard = NSStoryboard.init(name: "MyStoryboard", bundle: nil) | |
| let myWindowController = storyboard.instantiateController(withIdentifier: "MyWindowControllerID") as! NSWindowController | |
| return myWindowController as! MyWindowController | |
| }() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment