datePickerStyle
Set the native SwiftUI style for date pickers.
datePickerStyle(value) sets the SwiftUI style for the current DatePicker or descendant DatePickers.
Supported values:
automatic: the platform default, which iscompacton iOS.compact: a button that opens a calendar or time picker.graphical: an inline calendar.wheel: scrolling wheels.
import { DatePicker, Modifier } from "onescript/views"
<DatePicker
selection={alarm}
onSelectionChange={setAlarm}
displayedComponents={["hourAndMinute"]}
modifier={Modifier
.datePickerStyle("wheel")
.labelsHidden()}
>
Alarm
</DatePicker>How is this guide?
Last updated on