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
keythe setting name
valuethe value to store
userDefaultsthe container to store in
View on GitHub
SettingSettable Protocol Reference