26 lines
692 B
Swift
26 lines
692 B
Swift
#if os(iOS)
|
|
import SwiftUI
|
|
|
|
// MARK: SwiftUI.DatePicker { ... }.datePickerStyle(.wheel)
|
|
|
|
public struct DatePickerWithWheelStyleType: IntrospectableViewType {
|
|
public enum Style {
|
|
case wheel
|
|
}
|
|
}
|
|
|
|
extension IntrospectableViewType where Self == DatePickerWithWheelStyleType {
|
|
public static func datePicker(style: Self.Style) -> Self { .init() }
|
|
}
|
|
|
|
#if canImport(UIKit)
|
|
extension iOSViewVersion<DatePickerWithWheelStyleType, UIDatePicker> {
|
|
public static let v13 = Self(for: .v13)
|
|
public static let v14 = Self(for: .v14)
|
|
public static let v15 = Self(for: .v15)
|
|
public static let v16 = Self(for: .v16)
|
|
public static let v17 = Self(for: .v17)
|
|
}
|
|
#endif
|
|
#endif
|