title: Change initial view before viewDidLoad Swift
body: <p>I work with Xcode Swift 7 and 2.
  I want to know how to execute an action before viewDidLoad my initial view.
  In fact I would like to change the initial view based on a parameter (if I am logged in or not) ...
  Should we do it in the AppDelegate?
  Thank you</p>