DateRangePickerConfiguration

public struct DateRangePickerConfiguration

Undocumented

  • Undocumented

    Declaration

    Swift

    public var componentIdentifier: String
  • Undocumented

    Declaration

    Swift

    public let title: Title
  • Undocumented

    Declaration

    Swift

    public let valueLabel: ValueLabel
  • Undocumented

    Declaration

    Swift

    public let controlState: ControlState
  • Undocumented

    Declaration

    Swift

    public let errorMessage: AttributedString?
  • Undocumented

    Declaration

    Swift

    public let range: Range<Date>?
  • Undocumented

    Declaration

    Swift

    @Binding
    public var selectedRange: ClosedRange<Date>? { get nonmutating set }
  • Undocumented

    Declaration

    Swift

    public let rangeFormatter: DateFormatter?
  • Undocumented

    Declaration

    Swift

    public let noRangeSelectedString: String?
  • Undocumented

    Declaration

    Swift

    @Binding
    public var pickerVisible: Bool { get nonmutating set }
  • Undocumented

    Declaration

    Swift

    public let showsClearAction: Bool
  • Undocumented

    Declaration

    Swift

    public let clearAction: ClearAction
  • Undocumented

    Declaration

    Swift

    public typealias Title = ConfigurationViewWrapper
  • Undocumented

    Declaration

    Swift

    public typealias ValueLabel = ConfigurationViewWrapper
  • Undocumented

    Declaration

    Swift

    public typealias ClearAction = ConfigurationViewWrapper
  • Convenience initializer for DateRangePickerConfiguration

    Declaration

    Swift

    init(title: Title,
         valueLabel: ValueLabel,
         controlState: ControlState,
         errorMessage: AttributedString?,
         range: Range<Date>?,
         selectedRange: Binding<ClosedRange<Date>?>,
         rangeFormatter: DateFormatter?,
         noRangeSelectedString: String?,
         pickerVisible: Binding<Bool>)

    Parameters

    title

    The title view for the date range picker.

    valueLabel

    The value view for the date range picker.

    controlState

    The ControlState of the form view. The default is normal.

    errorMessage

    The error message of the form view.

    range

    The inclusive range of selectable dates.

    selectedRange

    The range of selected dates. Default is nil. It’s continuous in ascending order.

    rangeFormatter

    Range date formatter. The default date formatter conforms system setting, it uses short date type in compact screen and uses long date type in regular screen.

    noRangeSelectedString

    The text to be displayed when no range is selected. If this property is nil, the localized string “No range selected” will be used.

    pickerVisible

    This property indicates whether the picker is to be displayed or not.