An easy way to maintain UserDefaults key
You can use #function literal to get the property name as UserDefault key. In the following example, #function will get replaced by accessToken. Be aware, changing the property
You can use #function literal to get the property name as UserDefault key. In the following example, #function will get replaced by accessToken. Be aware, changing the property
This is the best hidden feature of UserDefaults. If you pass a UserDefault key and value as a launch argument this will set new value for that key.