You need to create a new storyboard instance and get the LoginViewController StoryboardId window
//Here, create an instance of the second storyboard excluding the extension(.storyboard), var storyBoard = UIStoryboard(name: "SecondStoryBoard", bundle: nil) //Here instantiate view controller with the storyboard instance, //Before that create a storyboardId for the corresponding view controller. var loginVC = storyBoard.instantiateViewControllerWithIdentifier("loginViewController") as LoginViewController //Here, the storyboard identifier is "loginViewController" which is created in the respective view controller "Identity" inspector
Hope this helps, Happy Coding :)
source share