SyntaxFix
Write A Post
Hire A Developer
Questions
Here is:
var array : [String] = ["One", "Two", "Three"] let userDefault = UserDefaults.standard // set userDefault.set(array, forKey: "array") // retrieve if let fetchArray = userDefault.array(forKey: "array") as? [String] { // code }