SettingsStorage
public protocol SettingsStorage
Protocol to define a storage for the settings
-
Saves a value for a key
Declaration
Swift
func set(_ value: Any?, forKey defaultName: String)
-
Gets a saved string for a given key
Declaration
Swift
func string(forKey defaultName: String) -> String?
-
Gets a saved dictionary for a given key
Declaration
Swift
func dictionary(forKey defaultName: String) -> [String : Any]?