FUIDateRange
public struct FUIDateRange
extension FUIDateRange: FUIDateSelection
The FUIDateRange object denotes the start and end dates of a range.
-
The start date of the range.
Declaration
Swift
public let startDate: Date? -
The end date of the range.
Declaration
Swift
public let endDate: Date? -
The constructor with a start date and an end date.
Declaration
Swift
public init(startDate: Date = Date(), endDate: Date = Date())Parameters
startDateThe start date. The default is today, if it is not specified
endDateThe end date. The default is today, if it is not specified.
-
The constructor with a start date and a duration.
Declaration
Swift
public init(startDate: Date = Date(), duration: Int = 1)Parameters
startDateThe start date. The default is today, if it is not specified.
durationThe duration of the range in days. The
endDateis set tonilif this value is less than 0.