Good morning, I am starting with swift , and I have doubts about how to manage preferences.
In android , when I try them, if the user has not modified it, I have one by default:
String correo = prefs.getString("email", "[email protected]");
In this way, if there is nothing stored, it returns the second value... well, that is what I would like, if it does not have any value stored by the user, it has one by default.
An easy way is with UserDefaults. The syntax is for Swift 3, it varies for other versions of Swift.