I am trying to add to my app delegate file the code that will allow me to segue directly to my "Camera VC" if the user is logged in and to the "loginVC" if the user is not logged in. To be honest, I am very lost on how to do this and any help would be hugely appreciated.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
var isLoggedIn: Bool?
let storyboardId: String = (isLoggedIn != nil) ? "loginVC" : "CameraVC"
self.window?.rootViewController?.storyboard?.instantiateViewControllerWithIdentifier(storyboardId as String)
return true
}