You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let sdefaults = SecureDefaults(suiteName: "a")
if !sdefaults.isKeyCreated {
sdefaults.password = UUID().uuidString
}
sdefaults.set(password, forKey: "libre-direct.settings.password")
sdefaults.synchronize()
I get quite some errors about optionals:
Value of optional type 'SecureDefaults?' must be unwrapped to refer to member 'isKeyCreated' of wrapped base type 'SecureDefaults'
Value of optional type 'SecureDefaults?' must be unwrapped to refer to member 'password' of wrapped base type 'SecureDefaults'
Value of optional type 'SecureDefaults?' must be unwrapped to refer to member 'set' of wrapped base type 'SecureDefaults'
Value of optional type 'SecureDefaults?' must be unwrapped to refer to member 'synchronize' of wrapped base type 'SecureDefaults'
The text was updated successfully, but these errors were encountered:
Hi, if I use this code in Xcode 15
I get quite some errors about optionals:
The text was updated successfully, but these errors were encountered: