Snapshot
public struct Snapshot : Codable
extension SingleUserDefaultsStore.Snapshot: Equatable where Object: Equatable
Used to backup and restore content to store.
-
Object.
Declaration
Swift
public let object: Object?
-
Date when the snapshot was created.
Declaration
Swift
public let dateCreated: Date
-
Create a new
Snapshot
.Declaration
Swift
public init(object: Object?, dateCreated: Date)
Parameters
object
Object to include in the snapshot.
dateCreated
Date when the snapshot was created.
-
Returns a Boolean value indicating whether two snapshots are equal.
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool
Parameters
lhs
A
Snapshot
object to compare.rhs
Another
Snapshot
object to compare.