RSDDateRange
public protocol RSDDateRange : RSDRange
RSDDateRange defines the range of values appropriate for a date data type.
-
The minimum allowed date. When the value of this property is
nil, then theallowPastproperty is checked fornil, otherwiseallowPastis ignored.Declaration
Swift
var minDate: Date? { get } -
The maximum allowed date. When the value of this property is
nil, then theallowFutureproperty is checked fornil, otherwiseallowFutureis ignored.Declaration
Swift
var maxDate: Date? { get } -
Whether or not the UI should allow future dates. If
nilor ifminDateis defined then this value is ignored. Default istrue.Declaration
Swift
var shouldAllowFuture: Bool? { get } -
Whether or not the UI should allow past dates. If
nilor ifmaxDateis defined then this value is ignored. Default istrue.Declaration
Swift
var shouldAllowPast: Bool? { get } -
The minute interval to allow for a time picker. A time picker will default to 1 minute if this is
nilor if the number is outside the allowable range of 1 to 30 minutes.Declaration
Swift
var minuteInterval: Int? { get } -
The date encoder to use for formatting the result. If
nilthen the result,minDate, andmaxDateare assumed to be used for time and date with the default coding implementation.Declaration
Swift
var dateCoder: RSDDateCoder? { get } -
The date that should be set initially.
Declaration
Swift
var defaultDate: Date? { get }
-
calendarComponentsExtension methodThe calendar components to include for this date range.
Declaration
Swift
public var calendarComponents: Set<Calendar.Component> { get } -
dataSource()Extension methodGet the picker data source and formatter for this date range.
Declaration
Swift
public func dataSource() -> (RSDPickerDataSource?, Formatter)Return Value
Tuple for the picker data source and formatter.
-
minimumDateExtension method -
maximumDateExtension method
View on GitHub
RSDDateRange Protocol Reference