Skip to content

Commit 2a650f8

Browse files
committed
WIP
1 parent 11784fd commit 2a650f8

File tree

73 files changed

+207
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+207
-171
lines changed

Examples/Showcase/Showcase/AppView.swift

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct AppView: View {
1212
window.backgroundColor = .brown
1313
}
1414
#elseif os(macOS)
15-
.introspect(.window, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { window in
15+
.introspect(.window, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { window in
1616
window.backgroundColor = .lightGray
1717
}
1818
#endif
@@ -92,7 +92,7 @@ struct ListShowcase: View {
9292
collectionView.subviews.dropFirst(1).first?.backgroundColor = .cyan
9393
}
9494
#elseif os(macOS)
95-
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { tableView in
95+
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { tableView in
9696
tableView.backgroundColor = .cyan
9797
}
9898
#endif
@@ -117,7 +117,7 @@ struct ListShowcase: View {
117117
collectionView.subviews.dropFirst(1).first?.backgroundColor = .cyan
118118
}
119119
#elseif os(macOS)
120-
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15), scope: .ancestor) { tableView in
120+
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26), scope: .ancestor) { tableView in
121121
tableView.backgroundColor = .cyan
122122
}
123123
#endif
@@ -155,7 +155,7 @@ struct ScrollViewShowcase: View {
155155
scrollView.layer.backgroundColor = UIColor.cyan.cgColor
156156
}
157157
#elseif os(macOS)
158-
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { scrollView in
158+
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { scrollView in
159159
scrollView.drawsBackground = true
160160
scrollView.backgroundColor = .cyan
161161
}
@@ -177,7 +177,7 @@ struct ScrollViewShowcase: View {
177177
scrollView.layer.backgroundColor = UIColor.cyan.cgColor
178178
}
179179
#elseif os(macOS)
180-
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15), scope: .ancestor) { scrollView in
180+
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26), scope: .ancestor) { scrollView in
181181
scrollView.drawsBackground = true
182182
scrollView.backgroundColor = .cyan
183183
}
@@ -310,7 +310,7 @@ struct GenericViewShowcase: View {
310310
view.backgroundColor = .cyan
311311
}
312312
#elseif os(macOS)
313-
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { view in
313+
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { view in
314314
view.layer?.backgroundColor = NSColor.cyan.cgColor
315315
}
316316
#endif
@@ -325,7 +325,7 @@ struct GenericViewShowcase: View {
325325
view.backgroundColor = .yellow
326326
}
327327
#elseif os(macOS)
328-
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { view in
328+
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { view in
329329
view.layer?.backgroundColor = NSColor.yellow.cgColor
330330
}
331331
#endif
@@ -339,7 +339,7 @@ struct GenericViewShowcase: View {
339339
view.backgroundColor = .blue
340340
}
341341
#elseif os(macOS)
342-
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { view in
342+
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { view in
343343
view.layer?.backgroundColor = NSColor.blue.cgColor
344344
}
345345
#endif
@@ -353,7 +353,7 @@ struct GenericViewShowcase: View {
353353
view.backgroundColor = .red
354354
}
355355
#elseif os(macOS)
356-
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { view in
356+
.introspect(.view, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { view in
357357
view.layer?.backgroundColor = NSColor.red.cgColor
358358
}
359359
#endif
@@ -380,7 +380,7 @@ struct SimpleElementsShowcase: View {
380380
textField.backgroundColor = .red
381381
}
382382
#elseif os(macOS)
383-
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { textField in
383+
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { textField in
384384
textField.backgroundColor = .red
385385
}
386386
#endif
@@ -395,7 +395,7 @@ struct SimpleElementsShowcase: View {
395395
textField.backgroundColor = .green
396396
}
397397
#elseif os(macOS)
398-
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { textField in
398+
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { textField in
399399
textField.backgroundColor = .green
400400
}
401401
#endif
@@ -413,7 +413,7 @@ struct SimpleElementsShowcase: View {
413413
toggle.backgroundColor = .red
414414
}
415415
#elseif os(macOS)
416-
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { toggle in
416+
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { toggle in
417417
toggle.layer?.backgroundColor = NSColor.red.cgColor
418418
}
419419
#endif
@@ -427,7 +427,7 @@ struct SimpleElementsShowcase: View {
427427
toggle.backgroundColor = .green
428428
}
429429
#elseif os(macOS)
430-
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { toggle in
430+
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { toggle in
431431
toggle.layer?.backgroundColor = NSColor.green.cgColor
432432
}
433433
#endif
@@ -440,7 +440,7 @@ struct SimpleElementsShowcase: View {
440440
slider.backgroundColor = .red
441441
}
442442
#elseif os(macOS)
443-
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { slider in
443+
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { slider in
444444
slider.layer?.backgroundColor = NSColor.red.cgColor
445445
}
446446
#endif
@@ -451,7 +451,7 @@ struct SimpleElementsShowcase: View {
451451
slider.backgroundColor = .green
452452
}
453453
#elseif os(macOS)
454-
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { slider in
454+
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { slider in
455455
slider.layer?.backgroundColor = NSColor.green.cgColor
456456
}
457457
#endif
@@ -466,7 +466,7 @@ struct SimpleElementsShowcase: View {
466466
stepper.backgroundColor = .red
467467
}
468468
#elseif os(macOS)
469-
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { stepper in
469+
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { stepper in
470470
stepper.layer?.backgroundColor = NSColor.red.cgColor
471471
}
472472
#endif
@@ -479,7 +479,7 @@ struct SimpleElementsShowcase: View {
479479
stepper.backgroundColor = .green
480480
}
481481
#elseif os(macOS)
482-
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { stepper in
482+
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { stepper in
483483
stepper.layer?.backgroundColor = NSColor.green.cgColor
484484
}
485485
#endif
@@ -495,7 +495,7 @@ struct SimpleElementsShowcase: View {
495495
datePicker.backgroundColor = .red
496496
}
497497
#elseif os(macOS)
498-
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { datePicker in
498+
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { datePicker in
499499
datePicker.layer?.backgroundColor = NSColor.red.cgColor
500500
}
501501
#endif
@@ -517,7 +517,7 @@ struct SimpleElementsShowcase: View {
517517
datePicker.backgroundColor = .red
518518
}
519519
#elseif os(macOS)
520-
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) { datePicker in
520+
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) { datePicker in
521521
datePicker.layer?.backgroundColor = NSColor.red.cgColor
522522
}
523523
#endif

Sources/ViewTypes/Button.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import SwiftUI
1717
/// struct ContentView: View {
1818
/// var body: some View {
1919
/// Button("Action", action: {})
20-
/// .introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) {
20+
/// .introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) {
2121
/// print(type(of: $0)) // NSButton
2222
/// }
2323
/// }
@@ -42,6 +42,7 @@ extension macOSViewVersion<ButtonType, NSButton> {
4242
public static let v13 = Self(for: .v13)
4343
public static let v14 = Self(for: .v14)
4444
public static let v15 = Self(for: .v15)
45+
public static let v26 = Self(for: .v26)
4546
}
4647
#endif
4748
#endif

Sources/ViewTypes/DatePicker.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import SwiftUI
2828
///
2929
/// var body: some View {
3030
/// DatePicker("Pick a date", selection: $date)
31-
/// .introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) {
31+
/// .introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) {
3232
/// print(type(of: $0)) // NSDatePicker
3333
/// }
3434
/// }
@@ -78,6 +78,7 @@ extension macOSViewVersion<DatePickerType, NSDatePicker> {
7878
public static let v13 = Self(for: .v13)
7979
public static let v14 = Self(for: .v14)
8080
public static let v15 = Self(for: .v15)
81+
public static let v26 = Self(for: .v26)
8182
}
8283
#endif
8384
#endif

Sources/ViewTypes/DatePickerWithCompactStyle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import SwiftUI
3232
/// var body: some View {
3333
/// DatePicker("Pick a date", selection: $date)
3434
/// .datePickerStyle(.compact)
35-
/// .introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13, .v14, .v15)) {
35+
/// .introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13, .v14, .v15, .v26)) {
3636
/// print(type(of: $0)) // NSDatePicker
3737
/// }
3838
/// }
@@ -90,6 +90,7 @@ extension macOSViewVersion<DatePickerWithCompactStyleType, NSDatePicker> {
9090
public static let v13 = Self(for: .v13)
9191
public static let v14 = Self(for: .v14)
9292
public static let v15 = Self(for: .v15)
93+
public static let v26 = Self(for: .v26)
9394
}
9495
#endif
9596
#endif

Sources/ViewTypes/DatePickerWithFieldStyle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import SwiftUI
2020
/// var body: some View {
2121
/// DatePicker("Pick a date", selection: $date)
2222
/// .datePickerStyle(.field)
23-
/// .introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) {
23+
/// .introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) {
2424
/// print(type(of: $0)) // NSDatePicker
2525
/// }
2626
/// }
@@ -49,6 +49,7 @@ extension macOSViewVersion<DatePickerWithFieldStyleType, NSDatePicker> {
4949
public static let v13 = Self(for: .v13)
5050
public static let v14 = Self(for: .v14)
5151
public static let v15 = Self(for: .v15)
52+
public static let v26 = Self(for: .v26)
5253
}
5354
#endif
5455
#endif

Sources/ViewTypes/DatePickerWithGraphicalStyle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import SwiftUI
3232
/// var body: some View {
3333
/// DatePicker("Pick a date", selection: $date)
3434
/// .datePickerStyle(.graphical)
35-
/// .introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) {
35+
/// .introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) {
3636
/// print(type(of: $0)) // NSDatePicker
3737
/// }
3838
/// }
@@ -88,6 +88,7 @@ extension macOSViewVersion<DatePickerWithGraphicalStyleType, NSDatePicker> {
8888
public static let v13 = Self(for: .v13)
8989
public static let v14 = Self(for: .v14)
9090
public static let v15 = Self(for: .v15)
91+
public static let v26 = Self(for: .v26)
9192
}
9293
#endif
9394
#endif

Sources/ViewTypes/DatePickerWithStepperFieldStyle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import SwiftUI
2020
/// var body: some View {
2121
/// DatePicker("Pick a date", selection: $date)
2222
/// .datePickerStyle(.stepperField)
23-
/// .introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) {
23+
/// .introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) {
2424
/// print(type(of: $0)) // NSDatePicker
2525
/// }
2626
/// }
@@ -49,6 +49,7 @@ extension macOSViewVersion<DatePickerWithStepperFieldStyleType, NSDatePicker> {
4949
public static let v13 = Self(for: .v13)
5050
public static let v14 = Self(for: .v14)
5151
public static let v15 = Self(for: .v15)
52+
public static let v26 = Self(for: .v26)
5253
}
5354
#endif
5455
#endif

Sources/ViewTypes/FormWithGroupedStyle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import SwiftUI
5050
/// Text("Item 3")
5151
/// }
5252
/// .formStyle(.grouped)
53-
/// .introspect(.form(style: .grouped), on: .macOS(.v13, .v14, .v15)) {
53+
/// .introspect(.form(style: .grouped), on: .macOS(.v13, .v14, .v15, .v26)) {
5454
/// print(type(of: $0)) // NSScrollView
5555
/// }
5656
/// }
@@ -127,6 +127,7 @@ extension macOSViewVersion<FormWithGroupedStyleType, NSScrollView> {
127127
public static let v13 = Self(for: .v13)
128128
public static let v14 = Self(for: .v14)
129129
public static let v15 = Self(for: .v15)
130+
public static let v26 = Self(for: .v26)
130131
}
131132
#endif
132133
#endif

Sources/ViewTypes/List.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import SwiftUI
5050
/// Text("Item 2")
5151
/// Text("Item 3")
5252
/// }
53-
/// .introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) {
53+
/// .introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) {
5454
/// print(type(of: $0)) // NSTableView
5555
/// }
5656
/// }
@@ -118,6 +118,7 @@ extension macOSViewVersion<ListType, NSTableView> {
118118
public static let v13 = Self(for: .v13)
119119
public static let v14 = Self(for: .v14)
120120
public static let v15 = Self(for: .v15)
121+
public static let v26 = Self(for: .v26)
121122
}
122123
#endif
123124
#endif

Sources/ViewTypes/ListCell.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import SwiftUI
4848
/// List {
4949
/// ForEach(1...3, id: \.self) { int in
5050
/// Text("Item \(int)")
51-
/// .introspect(.listCell, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15)) {
51+
/// .introspect(.listCell, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15, .v26)) {
5252
/// print(type(of: $0)) // NSTableCellView
5353
/// }
5454
/// }
@@ -115,6 +115,7 @@ extension macOSViewVersion<ListCellType, NSTableCellView> {
115115
public static let v13 = Self(for: .v13)
116116
public static let v14 = Self(for: .v14)
117117
public static let v15 = Self(for: .v15)
118+
public static let v26 = Self(for: .v26)
118119
}
119120
#endif
120121
#endif

0 commit comments

Comments
 (0)