UserDefaults
-
Mechanica
Returns
true
ifkey
exists. -
Mechanica
-
Mechanica
-
Mechanica
-
Mechanica
-
Mechanica
Removes all keys and values from user defaults.
Note
This method only removes keys on the receiverUserDefaults
object. System-defined keys will still be present afterwards.resetStandardUserDefaults
simply resets the in-memory user defaults object.
-
Mechanica
Returns the object conformig to
Codable
associated with the specified key, or nil if the key was not found. -
Mechanica
Stores an object conformig to
Codable
(or removes the value if nil is passed as the value) for the provided key.Throws
An error if any value throws an error during encoding.