|
53 | 53 | /// } |
54 | 54 | /// ``` |
55 | 55 | public struct DatePickerWithCompactStyleType: IntrospectableViewType { |
56 | | - public enum Style: Sendable { |
57 | | - case compact |
58 | | - } |
| 56 | + public enum Style: Sendable { |
| 57 | + case compact |
| 58 | + } |
59 | 59 | } |
60 | 60 |
|
61 | 61 | #if !os(tvOS) |
62 | 62 | extension IntrospectableViewType where Self == DatePickerWithCompactStyleType { |
63 | | - public static func datePicker(style: Self.Style) -> Self { .init() } |
| 63 | + public static func datePicker(style: Self.Style) -> Self { .init() } |
64 | 64 | } |
65 | 65 |
|
66 | 66 | #if canImport(UIKit) |
67 | 67 | public import UIKit |
68 | 68 |
|
69 | 69 | extension iOSViewVersion<DatePickerWithCompactStyleType, UIDatePicker> { |
70 | | - @available(*, unavailable, message: ".datePickerStyle(.compact) isn't available on iOS 13") |
71 | | - public static let v13 = Self.unavailable() |
72 | | - public static let v14 = Self(for: .v14) |
73 | | - public static let v15 = Self(for: .v15) |
74 | | - public static let v16 = Self(for: .v16) |
75 | | - public static let v17 = Self(for: .v17) |
76 | | - public static let v18 = Self(for: .v18) |
77 | | - public static let v26 = Self(for: .v26) |
| 70 | + @available(*, unavailable, message: ".datePickerStyle(.compact) isn't available on iOS 13") |
| 71 | + public static let v13 = Self.unavailable() |
| 72 | + public static let v14 = Self(for: .v14) |
| 73 | + public static let v15 = Self(for: .v15) |
| 74 | + public static let v16 = Self(for: .v16) |
| 75 | + public static let v17 = Self(for: .v17) |
| 76 | + public static let v18 = Self(for: .v18) |
| 77 | + public static let v26 = Self(for: .v26) |
78 | 78 | } |
79 | 79 |
|
80 | 80 | extension visionOSViewVersion<DatePickerWithCompactStyleType, UIDatePicker> { |
81 | | - public static let v1 = Self(for: .v1) |
82 | | - public static let v2 = Self(for: .v2) |
83 | | - public static let v26 = Self(for: .v26) |
| 81 | + public static let v1 = Self(for: .v1) |
| 82 | + public static let v2 = Self(for: .v2) |
| 83 | + public static let v26 = Self(for: .v26) |
84 | 84 | } |
85 | 85 | #elseif canImport(AppKit) && !targetEnvironment(macCatalyst) |
86 | 86 | public import AppKit |
87 | 87 |
|
88 | 88 | extension macOSViewVersion<DatePickerWithCompactStyleType, NSDatePicker> { |
89 | | - @available(*, unavailable, message: ".datePickerStyle(.compact) isn't available on macOS 10.15") |
90 | | - public static let v10_15 = Self.unavailable() |
91 | | - public static let v10_15_4 = Self(for: .v10_15_4) |
92 | | - public static let v11 = Self(for: .v11) |
93 | | - public static let v12 = Self(for: .v12) |
94 | | - public static let v13 = Self(for: .v13) |
95 | | - public static let v14 = Self(for: .v14) |
96 | | - public static let v15 = Self(for: .v15) |
97 | | - public static let v26 = Self(for: .v26) |
| 89 | + @available(*, unavailable, message: ".datePickerStyle(.compact) isn't available on macOS 10.15") |
| 90 | + public static let v10_15 = Self.unavailable() |
| 91 | + public static let v10_15_4 = Self(for: .v10_15_4) |
| 92 | + public static let v11 = Self(for: .v11) |
| 93 | + public static let v12 = Self(for: .v12) |
| 94 | + public static let v13 = Self(for: .v13) |
| 95 | + public static let v14 = Self(for: .v14) |
| 96 | + public static let v15 = Self(for: .v15) |
| 97 | + public static let v26 = Self(for: .v26) |
98 | 98 | } |
99 | 99 | #endif |
100 | 100 | #endif |
|
0 commit comments