RSDDatePickerDataSource
public protocol RSDDatePickerDataSource : RSDPickerDataSource
A data source for selecting a date.
-
The type of UI picker to display for dates and times.
Declaration
Swift
var datePickerMode: RSDDatePickerMode -
Specify the minimum date range. Default =
nil. WhenminimumDate>maximumDate, the values are ignored.Declaration
Swift
var minimumDate: Date? -
Specify the maximum date range. Default =
nil. WhenminimumDate>maximumDate, the values are ignored.Declaration
Swift
var maximumDate: Date? -
The minute interval to display in a picker wheel or list of choices. The interval must be evenly divided into 60. For example,
5is valid but7is not. Default is1, minimum is1, maximum is30.Declaration
Swift
var minuteInterval: Int? -
The date formatter for displaying the date in a text field or label
Declaration
Swift
var dateFormatter: DateFormatter
-
textAnswer(from:)Extension methodReturns the text answer to display for a given selected answer.
Declaration
Swift
public func textAnswer(from selectedAnswer: Any?) -> String?Parameters
selectedAnswerThe answer to convert.
Return Value
A text value for the answer to display to the user.
View on GitHub
RSDDatePickerDataSource Protocol Reference