-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
// Extend with a custom key
extension DefaultsKey {
static var someKey: Key { Key("someKey") }
}
// Then use it like this
defaults.set("Some key", for: .someKey)
defaults.get(for: .someKey) // Output: Some key
Xcode error:
Static stored properties not supported in protocol extensions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels