Closed boshd closed 7 years ago
Yes you are right, if this code is in your app delegate: self.window?.rootViewController = snapContainer self.window?.makeKeyAndVisible()
you will be going to the snapchat style view first. That code in the readme is just an example, you'll need to modify it to suit your needs. What you want is pretty easy though. I would recommend creating a new storyboard for your login flow, if the user isn't logged in, go to that storyboard from your app delegate, else go to mine. Then you could link the login storyboard to the main storyboard so when you're done logging in it takes you to the snapchat view.
Updated the readme to clarify
Alright so let me just give you an overview of my system. I have a intial root view (home) that contains two buttons (sign up - login) where each of these buttons has its own viewcontroller. The LoginViewController has a method as such:
Where if login is successful it takes you to the ViewController w/ identifier "Main". Thing is that im having trouble setting the initial controller to the "home" view when using your approach, and i think this is due to the code you provided for the appDelegate. Even though I set the Home viewcontroller to initial, it still takes me to the middleviewcontroller. what am i doing wrong?