SyncRecord
struct SyncRecord
This will describe one sync “pulse,” sent from the phone, to the Watch.
-
This is the currentTime value
Declaration
Swift
let to: Int
-
This is the date that corresponds to the currentTime value
Declaration
Swift
let date: Date
-
This is the date that corresponds to the currentTime value
Declaration
Swift
var asDictionary: [String : any Hashable] { get }
-
This returns the sync as a simple tuple.
Declaration
Swift
var asTuple: (to: Int, date: Date) { get }
-
Copy Init
Declaration
Swift
init(_ inToCopy: SyncRecord)
Parameters
inToCopy
An instance of this struct, to be copied.
-
Tuple init (unlabeled)
Declaration
Swift
init(_ inTuple: (Int, Date))
Parameters
inTuple
An unlabeled tuple, containing the values.
-
Tuple init (labeled)
Declaration
Swift
init(_ inTuple: (to: Int, date: Date))
Parameters
inTuple
A labeled tuple, containing the values.
-
Failable dictionary init
Declaration
Swift
init?(_ inDict: [String : any Hashable])
Parameters
inDict
A Dictionary, containing the state.