DateTimePickerConfiguration

public struct DateTimePickerConfiguration

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: ClosedRange<Date>?
  • Undocumented

    Declaration

    Swift

    @Binding
    public var selectedDate: Date? { get nonmutating set }
  • Undocumented

    Declaration

    Swift

    public let dateFormatter: DateFormatter?
  • Undocumented

    Declaration

    Swift

    public let pickerComponents: DatePicker.Components
  • Undocumented

    Declaration

    Swift

    public let dateStyle: Date.FormatStyle.DateStyle
  • Undocumented

    Declaration

    Swift

    public let timeStyle: Date.FormatStyle.TimeStyle
  • Undocumented

    Declaration

    Swift

    public let noDateSelectedString: String?
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public let hidesSeparator: Bool
  • 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 DateTimePickerConfiguration

    Declaration

    Swift

    init(title: Title,
         valueLabel: ValueLabel,
         controlState: ControlState,
         errorMessage: AttributedString?,
         range: ClosedRange<Date>?,
         selectedDate: Binding<Date?>,
         dateFormatter: DateFormatter?,
         pickerComponents: DatePicker.Components,
         dateStyle: Date.FormatStyle.DateStyle,
         timeStyle: Date.FormatStyle.TimeStyle,
         noDateSelectedString: String?,
         pickerVisible: Binding<Bool>,
         hidesSeparator: Bool)

    Parameters

    title

    The title view for the date time picker.

    valueLabel

    The value view for the date time 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.

    selectedDate

    The date value being displayed and selected.

    dateFormatter

    The DateFormatter to be used to display the selected Date. Default formatter will use customized dateStyle and timeStyle.

    pickerComponents

    The components shown in the date picker, default value shows date and time.

    dateStyle

    The custom style for displaying the date. The default value is .abbreviated, showing for example, “Oct 21, 2015”.

    timeStyle

    The custom style for displaying the time. The default value is .shortened, showing for example, “4:29 PM” or “16:29”.

    noDateSelectedString

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

    pickerVisible

    This property indicates whether the picker is to be displayed.

    hidesSeparator

    This property indicates whether the separator is to be displayed. Default is false.