Period
@available(swift 4.0)
public struct Period
TCX Period
-
Start Date
Declaration
Swift
private(set) public var startDate: Date
-
End Date
Declaration
Swift
private(set) public var endDate: Date?
-
Recurrence
Declaration
Swift
private(set) public var recurrence: RecurrenceCode
-
Days Per Period
Note
Default is 7, max 356Declaration
Swift
private(set) public var daysPerPeriod: UInt16
-
Undocumented
Declaration
Swift
public init(startDate: Date, endDate: Date?, recurrence: RecurrenceCode, daysPerPeriod: UInt16 = 7)
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
a
andb
,a == b
implies thata != b
isfalse
.Declaration
Swift
public static func == (lhs: Period, rhs: Period) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
Coding Keys
See moreDeclaration
Swift
public enum CodingKeys : String, CodingKey