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 theallowPast
property is checked fornil
, otherwiseallowPast
is ignored.Declaration
Swift
var minDate: Date? { get }
-
The maximum allowed date. When the value of this property is
nil
, then theallowFuture
property is checked fornil
, otherwiseallowFuture
is ignored.Declaration
Swift
var maxDate: Date? { get }
-
Whether or not the UI should allow future dates. If
nil
or ifminDate
is defined then this value is ignored. Default istrue
.Declaration
Swift
var shouldAllowFuture: Bool? { get }
-
Whether or not the UI should allow past dates. If
nil
or ifmaxDate
is 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
nil
or 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
nil
then the result,minDate
, andmaxDate
are 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 }
-
calendarComponents
Extension 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.
-
minimumDate
Extension method -
maximumDate
Extension method