UserDefaults

  • 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.