Add storyboard to Swift

How do you create multiple storyboards in one project using Swift? I know that I need to go to File → New → File and then select Storyboard, but how to integrate this storyboard into my project and move on to the new storyboard views in Swift code?

+7
swift storyboard
source share
1 answer

You need to get a link to the desired storyboard

let aStoryboard = UIStoryboard(name: "storyboardName", bundle: nil) 

Then create the required view controller

 let vc = aStoryboard.instantiateViewControllerWithIdentifier("viewControllerIdentifier") as! UIViewController 
+2
source share