Upvote:4

Aprove answer
let loggedInVC = storyboard.instantiateViewController(withIdentifier:"LoggedInVC") as! LoggedInVC

Upvote:0

  func presentLoggedInScreen() {
   let loggedInVC = storyboard?.instantiateInitialViewController(withIdentifier:"LoggedInVC") as! LoggedInVC
   self.present(loggedInVC, animated: true, completion: nil)
}

Credit Goes to: stackoverflow.com

Related question with same questions but different answers