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 types
    • Codable types
    See more

    Declaration

    Swift

    public protocol UserDefaultsSerializable