SettingSettable
public protocol SettingSettable
Protocol for types that can store a value in UserDefaults
-
Store a setting value under the given key.
Declaration
Swift
static func set(key: String, value: Self, userDefaults: UserDefaults)
Parameters
key
the setting name
value
the value to store
userDefaults
the container to store in