DatePickerWithWheelStyleType
@MainActor
public struct DatePickerWithWheelStyleType : IntrospectableViewType
An abstract representation of the DatePicker
type in SwiftUI, with .wheel
style.
struct ContentView: View {
@State var date = Date()
var body: some View {
DatePicker("Pick a date", selection: $date)
.datePickerStyle(.wheel)
.introspect(.datePicker(style: .wheel), on: .iOS(.all)) {
print(type(of: $0)) // UIDatePicker
}
}
}