Snapshot
public struct Snapshot<Value> : AnySnapshot
extension Snapshot: Equatable where Value: Equatable
extension Snapshot: Hashable where Value: Hashable
A snapshot of data.
-
The value captured at
date.Declaration
Swift
public let value: Value -
The point in time the data was captured.
Declaration
Swift
public let date: Date -
The data that was captured, erased as
Any.Declaration
Swift
public var typeErasedValue: Any? { get } -
Create a new snapshot with the provided value and date.
Declaration
Swift
public init(value: Value, date: Date)Parameters
valueThe captured value.
dateThe point in time the value was captured.
View on GitHub
Snapshot Structure Reference