Skip to content

Commit 33afa00

Browse files
committed
WIP
1 parent b03e47d commit 33afa00

File tree

5 files changed

+81
-81
lines changed

5 files changed

+81
-81
lines changed

Sources/ViewTypes/Button.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ public struct ButtonType: IntrospectableViewType {}
2929

3030
#if !os(iOS) && !os(tvOS) && !os(visionOS)
3131
extension IntrospectableViewType where Self == ButtonType {
32-
public static var button: Self { .init() }
32+
public static var button: Self { .init() }
3333
}
3434

3535
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
3636
public import AppKit
3737

3838
extension macOSViewVersion<ButtonType, NSButton> {
39-
public static let v10_15 = Self(for: .v10_15)
40-
public static let v11 = Self(for: .v11)
41-
public static let v12 = Self(for: .v12)
42-
public static let v13 = Self(for: .v13)
43-
public static let v14 = Self(for: .v14)
44-
public static let v15 = Self(for: .v15)
45-
public static let v26 = Self(for: .v26)
39+
public static let v10_15 = Self(for: .v10_15)
40+
public static let v11 = Self(for: .v11)
41+
public static let v12 = Self(for: .v12)
42+
public static let v13 = Self(for: .v13)
43+
public static let v14 = Self(for: .v14)
44+
public static let v15 = Self(for: .v15)
45+
public static let v26 = Self(for: .v26)
4646
}
4747
#endif
4848
#endif

Sources/ViewTypes/ColorPicker.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,43 +53,43 @@ public struct ColorPickerType: IntrospectableViewType {}
5353

5454
#if !os(tvOS)
5555
extension IntrospectableViewType where Self == ColorPickerType {
56-
public static var colorPicker: Self { .init() }
56+
public static var colorPicker: Self { .init() }
5757
}
5858

5959
#if canImport(UIKit)
6060
public import UIKit
6161

6262
@available(iOS 14, *)
6363
extension iOSViewVersion<ColorPickerType, UIColorWell> {
64-
@available(*, unavailable, message: "ColorPicker isn't available on iOS 13")
65-
public static let v13 = Self.unavailable()
66-
public static let v14 = Self(for: .v14)
67-
public static let v15 = Self(for: .v15)
68-
public static let v16 = Self(for: .v16)
69-
public static let v17 = Self(for: .v17)
70-
public static let v18 = Self(for: .v18)
71-
public static let v26 = Self(for: .v26)
64+
@available(*, unavailable, message: "ColorPicker isn't available on iOS 13")
65+
public static let v13 = Self.unavailable()
66+
public static let v14 = Self(for: .v14)
67+
public static let v15 = Self(for: .v15)
68+
public static let v16 = Self(for: .v16)
69+
public static let v17 = Self(for: .v17)
70+
public static let v18 = Self(for: .v18)
71+
public static let v26 = Self(for: .v26)
7272
}
7373

7474
@available(iOS 14, *)
7575
extension visionOSViewVersion<ColorPickerType, UIColorWell> {
76-
public static let v1 = Self(for: .v1)
77-
public static let v2 = Self(for: .v2)
78-
public static let v26 = Self(for: .v26)
76+
public static let v1 = Self(for: .v1)
77+
public static let v2 = Self(for: .v2)
78+
public static let v26 = Self(for: .v26)
7979
}
8080
#elseif canImport(AppKit)
8181
public import AppKit
8282

8383
@available(macOS 11, *)
8484
extension macOSViewVersion<ColorPickerType, NSColorWell> {
85-
@available(*, unavailable, message: "ColorPicker isn't available on macOS 10.15")
86-
public static let v10_15 = Self.unavailable()
87-
public static let v11 = Self(for: .v11)
88-
public static let v12 = Self(for: .v12)
89-
public static let v13 = Self(for: .v13)
90-
public static let v14 = Self(for: .v14)
91-
public static let v15 = Self(for: .v15)
92-
public static let v26 = Self(for: .v26)
85+
@available(*, unavailable, message: "ColorPicker isn't available on macOS 10.15")
86+
public static let v10_15 = Self.unavailable()
87+
public static let v11 = Self(for: .v11)
88+
public static let v12 = Self(for: .v12)
89+
public static let v13 = Self(for: .v13)
90+
public static let v14 = Self(for: .v14)
91+
public static let v15 = Self(for: .v15)
92+
public static let v26 = Self(for: .v26)
9393
}
9494
#endif
9595
#endif

Sources/ViewTypes/DatePicker.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,38 +51,38 @@ public struct DatePickerType: IntrospectableViewType {}
5151

5252
#if !os(tvOS)
5353
extension IntrospectableViewType where Self == DatePickerType {
54-
public static var datePicker: Self { .init() }
54+
public static var datePicker: Self { .init() }
5555
}
5656

5757
#if canImport(UIKit)
5858
public import UIKit
5959

6060
extension iOSViewVersion<DatePickerType, UIDatePicker> {
61-
public static let v13 = Self(for: .v13)
62-
public static let v14 = Self(for: .v14)
63-
public static let v15 = Self(for: .v15)
64-
public static let v16 = Self(for: .v16)
65-
public static let v17 = Self(for: .v17)
66-
public static let v18 = Self(for: .v18)
67-
public static let v26 = Self(for: .v26)
61+
public static let v13 = Self(for: .v13)
62+
public static let v14 = Self(for: .v14)
63+
public static let v15 = Self(for: .v15)
64+
public static let v16 = Self(for: .v16)
65+
public static let v17 = Self(for: .v17)
66+
public static let v18 = Self(for: .v18)
67+
public static let v26 = Self(for: .v26)
6868
}
6969

7070
extension visionOSViewVersion<DatePickerType, UIDatePicker> {
71-
public static let v1 = Self(for: .v1)
72-
public static let v2 = Self(for: .v2)
73-
public static let v26 = Self(for: .v26)
71+
public static let v1 = Self(for: .v1)
72+
public static let v2 = Self(for: .v2)
73+
public static let v26 = Self(for: .v26)
7474
}
7575
#elseif canImport(AppKit)
7676
public import AppKit
7777

7878
extension macOSViewVersion<DatePickerType, NSDatePicker> {
79-
public static let v10_15 = Self(for: .v10_15)
80-
public static let v11 = Self(for: .v11)
81-
public static let v12 = Self(for: .v12)
82-
public static let v13 = Self(for: .v13)
83-
public static let v14 = Self(for: .v14)
84-
public static let v15 = Self(for: .v15)
85-
public static let v26 = Self(for: .v26)
79+
public static let v10_15 = Self(for: .v10_15)
80+
public static let v11 = Self(for: .v11)
81+
public static let v12 = Self(for: .v12)
82+
public static let v13 = Self(for: .v13)
83+
public static let v14 = Self(for: .v14)
84+
public static let v15 = Self(for: .v15)
85+
public static let v26 = Self(for: .v26)
8686
}
8787
#endif
8888
#endif

Sources/ViewTypes/DatePickerWithCompactStyle.swift

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

6161
#if !os(tvOS)
6262
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() }
6464
}
6565

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

6969
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)
7878
}
7979

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

8888
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)
9898
}
9999
#endif
100100
#endif

Sources/ViewTypes/DatePickerWithFieldStyle.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 DatePickerWithFieldStyleType: IntrospectableViewType {
32-
public enum Style: Sendable {
33-
case field
34-
}
32+
public enum Style: Sendable {
33+
case field
34+
}
3535
}
3636

3737
#if !os(iOS) && !os(tvOS) && !os(visionOS)
3838
extension IntrospectableViewType where Self == DatePickerWithFieldStyleType {
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<DatePickerWithFieldStyleType, 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

0 commit comments

Comments
 (0)