MultiDatePicker
A control for picking multiple dates.
Platform Compatibility
Tags
SwiftUI Code
@State private var dates: Set<DateComponents> = []
var body: some View {
MultiDatePicker("Dates Available", selection: $dates)
}A control for picking multiple dates.
@State private var dates: Set<DateComponents> = []
var body: some View {
MultiDatePicker("Dates Available", selection: $dates)
}Creates an instance that selects multiple dates on or after some start date
A system style that displays the components in an editable field, with adjoining stepper that can increment/decrement the selected component
A date picker style that displays each component as columns in a scrollable wheel
A picker style that presents the options as a menu when the user presses a button, or as a submenu when nested within a larger menu.
A picker style that presents options as segmented tabs. On macOS, this style produces a segmented picker with a visual treatment that distinguishes tab navigation from value selection. On iOS, tvOS, and visionOS, the visual appearance matches that of the standard standard .segmented style. On all supported platforms, VoiceOver announces options as tabs.
Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels