Put this code in your App Delegate, in the didFinishLaunchingWithOptions function. Of course, your own view controllers will go in place of mine:
let currentUser = PFUser.currentUser()
if currentUser != nil {
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
let storyBoard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
let controller1 = storyBoard.instantiateViewControllerWithIdentifier("yourViewControllerIdentifier") as! YourViewController
self.window?.rootViewController = controller1
self.window?.makeKeyAndVisible()
}
basically the idea is if the current user is not nil, you will make the root view controller a different one (the controller that you specify just above), and the app will start from there as the storyboard entry point.
To use this method you have to give your view controller (the one you want to skip to if the user is logged in) a storyboard identifier. Go to the panel to the far right to do this, and under "Storyboard ID" give it a name. pass this name in as the string where I put "yourViewControllerIdentifier"
Then, just cast that to whatever the name of the class is that represents that view controller.