Skip to content

Commit 70d1ea8

Browse files
committed
WIP
1 parent 32d9383 commit 70d1ea8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/ViewTypes/ColorPicker.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import SwiftUI
1111
///
1212
/// var body: some View {
1313
/// ColorPicker("Pick a color", selection: $color)
14-
/// .introspect(.colorPicker, on: .iOS(.v14, .v15, .v16, .v17, .v18)) {
14+
/// .introspect(.colorPicker, on: .iOS(.v14, .v15, .v16, .v17, .v18, .v26)) {
1515
/// print(type(of: $0)) // UIColorPicker
1616
/// }
1717
/// }
@@ -30,7 +30,7 @@ import SwiftUI
3030
///
3131
/// var body: some View {
3232
/// ColorPicker("Pick a color", selection: $color)
33-
/// .introspect(.colorPicker, on: .macOS(.v11, .v12, .v13, .v14, .v15)) {
33+
/// .introspect(.colorPicker, on: .macOS(.v11, .v12, .v13, .v14, .v15, .v26)) {
3434
/// print(type(of: $0)) // NSColorPicker
3535
/// }
3636
/// }
@@ -45,7 +45,7 @@ import SwiftUI
4545
///
4646
/// var body: some View {
4747
/// ColorPicker("Pick a color", selection: $color)
48-
/// .introspect(.colorPicker, on: .visionOS(.v1, .v2)) {
48+
/// .introspect(.colorPicker, on: .visionOS(.v1, .v2, .v26)) {
4949
/// print(type(of: $0)) // UIColorPicker
5050
/// }
5151
/// }
@@ -68,12 +68,14 @@ extension iOSViewVersion<ColorPickerType, UIColorWell> {
6868
public static let v16 = Self(for: .v16)
6969
public static let v17 = Self(for: .v17)
7070
public static let v18 = Self(for: .v18)
71+
public static let v26 = Self(for: .v26)
7172
}
7273

7374
@available(iOS 14, *)
7475
extension visionOSViewVersion<ColorPickerType, UIColorWell> {
7576
public static let v1 = Self(for: .v1)
7677
public static let v2 = Self(for: .v2)
78+
public static let v26 = Self(for: .v26)
7779
}
7880
#elseif canImport(AppKit)
7981
@available(macOS 11, *)
@@ -85,6 +87,7 @@ extension macOSViewVersion<ColorPickerType, NSColorWell> {
8587
public static let v13 = Self(for: .v13)
8688
public static let v14 = Self(for: .v14)
8789
public static let v15 = Self(for: .v15)
90+
public static let v26 = Self(for: .v26)
8891
}
8992
#endif
9093
#endif

0 commit comments

Comments
 (0)