Skip to content

Commit 47180d7

Browse files
committed
WIP
1 parent 33afa00 commit 47180d7

16 files changed

+387
-387
lines changed

Sources/ViewTypes/DatePickerWithGraphicalStyle.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,46 +53,46 @@
5353
/// }
5454
/// ```
5555
public struct DatePickerWithGraphicalStyleType: IntrospectableViewType {
56-
public enum Style: Sendable {
57-
case graphical
58-
}
56+
public enum Style: Sendable {
57+
case graphical
58+
}
5959
}
6060

6161
#if !os(tvOS)
6262
extension IntrospectableViewType where Self == DatePickerWithGraphicalStyleType {
63-
public static func datePicker(style: Self.Style) -> Self { .init() }
63+
public static func datePicker(style: Self.Style) -> Self { .init() }
6464
}
6565

6666
#if canImport(UIKit)
6767
public import UIKit
6868

6969
extension iOSViewVersion<DatePickerWithGraphicalStyleType, UIDatePicker> {
70-
@available(*, unavailable, message: ".datePickerStyle(.graphical) isn't available on iOS 13")
71-
public static let v13 = Self(for: .v13)
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(.graphical) isn't available on iOS 13")
71+
public static let v13 = Self(for: .v13)
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)
7878
}
7979

8080
extension visionOSViewVersion<DatePickerWithGraphicalStyleType, 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)
8484
}
8585
#elseif canImport(AppKit) && !targetEnvironment(macCatalyst)
8686
public import AppKit
8787

8888
extension macOSViewVersion<DatePickerWithGraphicalStyleType, NSDatePicker> {
89-
public static let v10_15 = Self(for: .v10_15)
90-
public static let v11 = Self(for: .v11)
91-
public static let v12 = Self(for: .v12)
92-
public static let v13 = Self(for: .v13)
93-
public static let v14 = Self(for: .v14)
94-
public static let v15 = Self(for: .v15)
95-
public static let v26 = Self(for: .v26)
89+
public static let v10_15 = Self(for: .v10_15)
90+
public static let v11 = Self(for: .v11)
91+
public static let v12 = Self(for: .v12)
92+
public static let v13 = Self(for: .v13)
93+
public static let v14 = Self(for: .v14)
94+
public static let v15 = Self(for: .v15)
95+
public static let v26 = Self(for: .v26)
9696
}
9797
#endif
9898
#endif

Sources/ViewTypes/DatePickerWithStepperFieldStyle.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,27 @@
2929
///
3030
/// Not available.
3131
public struct DatePickerWithStepperFieldStyleType: IntrospectableViewType {
32-
public enum Style: Sendable {
33-
case stepperField
34-
}
32+
public enum Style: Sendable {
33+
case stepperField
34+
}
3535
}
3636

3737
#if !os(iOS) && !os(tvOS) && !os(visionOS)
3838
extension IntrospectableViewType where Self == DatePickerWithStepperFieldStyleType {
39-
public static func datePicker(style: Self.Style) -> Self { .init() }
39+
public static func datePicker(style: Self.Style) -> Self { .init() }
4040
}
4141

4242
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
4343
public import AppKit
4444

4545
extension macOSViewVersion<DatePickerWithStepperFieldStyleType, NSDatePicker> {
46-
public static let v10_15 = Self(for: .v10_15)
47-
public static let v11 = Self(for: .v11)
48-
public static let v12 = Self(for: .v12)
49-
public static let v13 = Self(for: .v13)
50-
public static let v14 = Self(for: .v14)
51-
public static let v15 = Self(for: .v15)
52-
public static let v26 = Self(for: .v26)
46+
public static let v10_15 = Self(for: .v10_15)
47+
public static let v11 = Self(for: .v11)
48+
public static let v12 = Self(for: .v12)
49+
public static let v13 = Self(for: .v13)
50+
public static let v14 = Self(for: .v14)
51+
public static let v15 = Self(for: .v15)
52+
public static let v26 = Self(for: .v26)
5353
}
5454
#endif
5555
#endif

Sources/ViewTypes/DatePickerWithWheelStyle.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,33 @@
4141
/// }
4242
/// ```
4343
public struct DatePickerWithWheelStyleType: IntrospectableViewType {
44-
public enum Style: Sendable {
45-
case wheel
46-
}
44+
public enum Style: Sendable {
45+
case wheel
46+
}
4747
}
4848

4949
#if !os(tvOS) && !os(macOS)
5050
extension IntrospectableViewType where Self == DatePickerWithWheelStyleType {
51-
public static func datePicker(style: Self.Style) -> Self { .init() }
51+
public static func datePicker(style: Self.Style) -> Self { .init() }
5252
}
5353

5454
#if canImport(UIKit)
5555
public import UIKit
5656

5757
extension iOSViewVersion<DatePickerWithWheelStyleType, UIDatePicker> {
58-
public static let v13 = Self(for: .v13)
59-
public static let v14 = Self(for: .v14)
60-
public static let v15 = Self(for: .v15)
61-
public static let v16 = Self(for: .v16)
62-
public static let v17 = Self(for: .v17)
63-
public static let v18 = Self(for: .v18)
64-
public static let v26 = Self(for: .v26)
58+
public static let v13 = Self(for: .v13)
59+
public static let v14 = Self(for: .v14)
60+
public static let v15 = Self(for: .v15)
61+
public static let v16 = Self(for: .v16)
62+
public static let v17 = Self(for: .v17)
63+
public static let v18 = Self(for: .v18)
64+
public static let v26 = Self(for: .v26)
6565
}
6666

6767
extension visionOSViewVersion<DatePickerWithWheelStyleType, UIDatePicker> {
68-
public static let v1 = Self(for: .v1)
69-
public static let v2 = Self(for: .v2)
70-
public static let v26 = Self(for: .v26)
68+
public static let v1 = Self(for: .v1)
69+
public static let v2 = Self(for: .v2)
70+
public static let v26 = Self(for: .v26)
7171
}
7272
#endif
7373
#endif

Sources/ViewTypes/Form.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,39 +62,39 @@ public struct FormType: IntrospectableViewType {}
6262

6363
#if !os(macOS)
6464
extension IntrospectableViewType where Self == FormType {
65-
public static var form: Self { .init() }
65+
public static var form: Self { .init() }
6666
}
6767

6868
#if canImport(UIKit)
6969
public import UIKit
7070

7171
extension iOSViewVersion<FormType, UITableView> {
72-
public static let v13 = Self(for: .v13)
73-
public static let v14 = Self(for: .v14)
74-
public static let v15 = Self(for: .v15)
72+
public static let v13 = Self(for: .v13)
73+
public static let v14 = Self(for: .v14)
74+
public static let v15 = Self(for: .v15)
7575
}
7676

7777
extension iOSViewVersion<FormType, UICollectionView> {
78-
public static let v16 = Self(for: .v16)
79-
public static let v17 = Self(for: .v17)
80-
public static let v18 = Self(for: .v18)
81-
public static let v26 = Self(for: .v26)
78+
public static let v16 = Self(for: .v16)
79+
public static let v17 = Self(for: .v17)
80+
public static let v18 = Self(for: .v18)
81+
public static let v26 = Self(for: .v26)
8282
}
8383

8484
extension tvOSViewVersion<FormType, UITableView> {
85-
public static let v13 = Self(for: .v13)
86-
public static let v14 = Self(for: .v14)
87-
public static let v15 = Self(for: .v15)
88-
public static let v16 = Self(for: .v16)
89-
public static let v17 = Self(for: .v17)
90-
public static let v18 = Self(for: .v18)
91-
public static let v26 = Self(for: .v26)
85+
public static let v13 = Self(for: .v13)
86+
public static let v14 = Self(for: .v14)
87+
public static let v15 = Self(for: .v15)
88+
public static let v16 = Self(for: .v16)
89+
public static let v17 = Self(for: .v17)
90+
public static let v18 = Self(for: .v18)
91+
public static let v26 = Self(for: .v26)
9292
}
9393

9494
extension visionOSViewVersion<FormType, UICollectionView> {
95-
public static let v1 = Self(for: .v1)
96-
public static let v2 = Self(for: .v2)
97-
public static let v26 = Self(for: .v26)
95+
public static let v1 = Self(for: .v1)
96+
public static let v2 = Self(for: .v2)
97+
public static let v26 = Self(for: .v26)
9898
}
9999
#endif
100100
#endif

Sources/ViewTypes/FormWithGroupedStyle.swift

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -73,66 +73,66 @@
7373
/// }
7474
/// ```
7575
public struct FormWithGroupedStyleType: IntrospectableViewType {
76-
public enum Style: Sendable {
77-
case grouped
78-
}
76+
public enum Style: Sendable {
77+
case grouped
78+
}
7979
}
8080

8181
extension IntrospectableViewType where Self == FormWithGroupedStyleType {
82-
public static func form(style: Self.Style) -> Self { .init() }
82+
public static func form(style: Self.Style) -> Self { .init() }
8383
}
8484

8585
#if canImport(UIKit)
8686
public import UIKit
8787

8888
extension iOSViewVersion<FormWithGroupedStyleType, UITableView> {
89-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 13")
90-
public static let v13 = Self.unavailable()
91-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 14")
92-
public static let v14 = Self.unavailable()
93-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 15")
94-
public static let v15 = Self.unavailable()
89+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 13")
90+
public static let v13 = Self.unavailable()
91+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 14")
92+
public static let v14 = Self.unavailable()
93+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 15")
94+
public static let v15 = Self.unavailable()
9595
}
9696

9797
extension iOSViewVersion<FormWithGroupedStyleType, UICollectionView> {
98-
public static let v16 = Self(for: .v16)
99-
public static let v17 = Self(for: .v17)
100-
public static let v18 = Self(for: .v18)
101-
public static let v26 = Self(for: .v26)
98+
public static let v16 = Self(for: .v16)
99+
public static let v17 = Self(for: .v17)
100+
public static let v18 = Self(for: .v18)
101+
public static let v26 = Self(for: .v26)
102102
}
103103

104104
extension tvOSViewVersion<FormWithGroupedStyleType, UITableView> {
105-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 13")
106-
public static let v13 = Self.unavailable()
107-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 14")
108-
public static let v14 = Self.unavailable()
109-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 15")
110-
public static let v15 = Self.unavailable()
111-
public static let v16 = Self(for: .v16)
112-
public static let v17 = Self(for: .v17)
113-
public static let v18 = Self(for: .v18)
114-
public static let v26 = Self(for: .v26)
105+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 13")
106+
public static let v13 = Self.unavailable()
107+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 14")
108+
public static let v14 = Self.unavailable()
109+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 15")
110+
public static let v15 = Self.unavailable()
111+
public static let v16 = Self(for: .v16)
112+
public static let v17 = Self(for: .v17)
113+
public static let v18 = Self(for: .v18)
114+
public static let v26 = Self(for: .v26)
115115
}
116116

117117
extension visionOSViewVersion<FormWithGroupedStyleType, UICollectionView> {
118-
public static let v1 = Self(for: .v1)
119-
public static let v2 = Self(for: .v2)
120-
public static let v26 = Self(for: .v26)
118+
public static let v1 = Self(for: .v1)
119+
public static let v2 = Self(for: .v2)
120+
public static let v26 = Self(for: .v26)
121121
}
122122
#elseif canImport(AppKit)
123123
public import AppKit
124124

125125
extension macOSViewVersion<FormWithGroupedStyleType, NSScrollView> {
126-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 10.15")
127-
public static let v10_15 = Self.unavailable()
128-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 11")
129-
public static let v11 = Self.unavailable()
130-
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 12")
131-
public static let v12 = Self.unavailable()
132-
public static let v13 = Self(for: .v13)
133-
public static let v14 = Self(for: .v14)
134-
public static let v15 = Self(for: .v15)
135-
public static let v26 = Self(for: .v26)
126+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 10.15")
127+
public static let v10_15 = Self.unavailable()
128+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 11")
129+
public static let v11 = Self.unavailable()
130+
@available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 12")
131+
public static let v12 = Self.unavailable()
132+
public static let v13 = Self(for: .v13)
133+
public static let v14 = Self(for: .v14)
134+
public static let v15 = Self(for: .v15)
135+
public static let v26 = Self(for: .v26)
136136
}
137137
#endif
138138
#endif

0 commit comments

Comments
 (0)