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 -
init(title:valueLabel: controlState: errorMessage: range: selectedRange: rangeFormatter: noRangeSelectedString: pickerVisible: ) Convenience initializer for
DateRangePickerConfigurationDeclaration
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
titleThe title view for the date range picker.
valueLabelThe value view for the date range picker.
controlStateThe
ControlStateof the form view. The default isnormal.errorMessageThe error message of the form view.
rangeThe inclusive range of selectable dates.
selectedRangeThe range of selected dates. Default is nil. It’s continuous in ascending order.
rangeFormatterRange 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.
noRangeSelectedStringThe text to be displayed when no range is selected. If this property is
nil, the localized string “No range selected” will be used.pickerVisibleThis property indicates whether the picker is to be displayed or not.