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
{{ message }}
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
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'
Hi, if I use this code in Xcode 15
I get quite some errors about optionals: