How to save user settings using UserDefaults – Swift 5