RSDDatePickerDataSourceObject

public struct RSDDatePickerDataSourceObject : RSDDatePickerDataSource

A simple struct that can be used to implement the RSDDatePickerDataSource protocol.

  • The type of UI picker to display for dates and times.

    Declaration

    Swift

    public let datePickerMode: RSDDatePickerMode
  • Specify the minimum date range. Default = nil. When minimumDate > maximumDate, the values are ignored.

    Declaration

    Swift

    public let minimumDate: Date?
  • Specify the maximum date range. Default = nil. When minimumDate > maximumDate, the values are ignored.

    Declaration

    Swift

    public let 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, 5 is valid but 7 is not. Default is 1, minimum is 1, maximum is 30.

    Declaration

    Swift

    public let minuteInterval: Int?
  • The date formatter for displaying the date in a text field or label.

    Declaration

    Swift

    public let dateFormatter: DateFormatter
  • The date that should be set initially.

    Declaration

    Swift

    public let defaultDate: Date?
  • Default initializer. Auto-synthesized init is not public.

    Declaration

    Swift

    public init(datePickerMode: RSDDatePickerMode, minimumDate: Date?, maximumDate: Date?, minuteInterval: Int?, dateFormatter: DateFormatter, defaultDate: Date?)