Protocols
The following protocols are available globally.
-
Describes a value that can be saved to and fetched from
UserDefaults
.Default conformances are provided for:
Bool
Int
UInt
Float
Double
String
URL
Date
Data
Array
Set
Dictionary
RawRepresentable
typesCodable
types
Declaration
Swift
public protocol UserDefaultsSerializable