We'll be going over how to use UserDefaults to save data on the device today. Whenever a user logs in, we'll keep track of this information using a boolean and a key that we'll store inside of UserDefaults.
Doing so will allow us a clean way to load our initial view based on the information we have about our user.
As a bonus, let's go over a more robust way of saving things into UserDefaults by introducing an Enumeration for our string keys.