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

    startDate

    The start date. The default is today, if it is not specified

    endDate

    The 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

    startDate

    The start date. The default is today, if it is not specified.

    duration

    The duration of the range in days. The default is 1, if it is not specified.