Snapshot
public struct Snapshot : Codable
extension UserDefaultsStore.Snapshot: Equatable where Object: Equatable
Used to backup and restore content to store.
-
Array of objects.
Declaration
Swift
public let objects: [Object]
-
Date when the snapshot was created.
Declaration
Swift
public let dateCreated: Date
-
Create a new
Snapshot
.Declaration
Swift
public init(objects: [Object], dateCreated: Date)
Parameters
object
Array of objects 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.