@@ -25,11 +25,11 @@ struct ContentView: View {
25
25
. tag ( 4 )
26
26
}
27
27
#if os(iOS) || os(tvOS)
28
- . introspect( . tabView, on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) ) { tabBarController in
28
+ . introspect( . tabView, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { tabBarController in
29
29
tabBarController. tabBar. layer. backgroundColor = UIColor . green. cgColor
30
30
}
31
31
#elseif os(macOS)
32
- . introspect( . tabView, on: . macOS( . v10_15, . v11, . v12, . v13) ) { splitView in
32
+ . introspect( . tabView, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { splitView in
33
33
splitView. subviews. first? . layer? . backgroundColor = NSColor . green. cgColor
34
34
}
35
35
#endif
@@ -62,16 +62,16 @@ struct ListShowcase: View {
62
62
Text ( " Item 2 " )
63
63
}
64
64
#if os(iOS) || os(tvOS)
65
- . introspect( . list, on: . iOS( . v13, . v14, . v15) , . tvOS( . v13, . v14, . v15, . v16) ) { tableView in
65
+ . introspect( . list, on: . iOS( . v13, . v14, . v15) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { tableView in
66
66
tableView. backgroundView = UIView ( )
67
67
tableView. backgroundColor = . cyan
68
68
}
69
- . introspect ( . list, on: . iOS( . v16) ) { collectionView in
69
+ . introspect ( . list, on: . iOS( . v16, . v17 ) ) { collectionView in
70
70
collectionView. backgroundView = UIView ( )
71
71
collectionView. subviews. dropFirst ( 1 ) . first? . backgroundColor = . cyan
72
72
}
73
73
#elseif os(macOS)
74
- . introspect( . list, on: . macOS( . v10_15, . v11, . v12, . v13) ) { tableView in
74
+ . introspect( . list, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { tableView in
75
75
tableView. backgroundColor = . cyan
76
76
}
77
77
#endif
@@ -87,16 +87,16 @@ struct ListShowcase: View {
87
87
Text ( " Item 1 " )
88
88
Text ( " Item 2 " )
89
89
#if os(iOS) || os(tvOS)
90
- . introspect( . list, on: . iOS( . v13, . v14, . v15) , . tvOS( . v13, . v14, . v15, . v16) , scope: . ancestor) { tableView in
90
+ . introspect( . list, on: . iOS( . v13, . v14, . v15) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) , scope: . ancestor) { tableView in
91
91
tableView. backgroundView = UIView ( )
92
92
tableView. backgroundColor = . cyan
93
93
}
94
- . introspect ( . list, on: . iOS( . v16) , scope: . ancestor) { collectionView in
94
+ . introspect ( . list, on: . iOS( . v16, . v17 ) , scope: . ancestor) { collectionView in
95
95
collectionView. backgroundView = UIView ( )
96
96
collectionView. subviews. dropFirst ( 1 ) . first? . backgroundColor = . cyan
97
97
}
98
98
#elseif os(macOS)
99
- . introspect( . list, on: . macOS( . v10_15, . v11, . v12, . v13) , scope: . ancestor) { tableView in
99
+ . introspect( . list, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) , scope: . ancestor) { tableView in
100
100
tableView. backgroundColor = . cyan
101
101
}
102
102
#endif
@@ -127,11 +127,11 @@ struct ScrollViewShowcase: View {
127
127
. font ( . system( . subheadline, design: . monospaced) )
128
128
}
129
129
#if os(iOS) || os(tvOS)
130
- . introspect( . scrollView, on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) ) { scrollView in
130
+ . introspect( . scrollView, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { scrollView in
131
131
scrollView. layer. backgroundColor = UIColor . cyan. cgColor
132
132
}
133
133
#elseif os(macOS)
134
- . introspect( . scrollView, on: . macOS( . v10_15, . v11, . v12, . v13) ) { scrollView in
134
+ . introspect( . scrollView, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { scrollView in
135
135
scrollView. drawsBackground = true
136
136
scrollView. backgroundColor = . cyan
137
137
}
@@ -145,11 +145,11 @@ struct ScrollViewShowcase: View {
145
145
. padding ( . horizontal, 12 )
146
146
. font ( . system( . subheadline, design: . monospaced) )
147
147
#if os(iOS) || os(tvOS)
148
- . introspect( . scrollView, on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) , scope: . ancestor) { scrollView in
148
+ . introspect( . scrollView, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) , scope: . ancestor) { scrollView in
149
149
scrollView. layer. backgroundColor = UIColor . cyan. cgColor
150
150
}
151
151
#elseif os(macOS)
152
- . introspect( . scrollView, on: . macOS( . v10_15, . v11, . v12, . v13) , scope: . ancestor) { scrollView in
152
+ . introspect( . scrollView, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) , scope: . ancestor) { scrollView in
153
153
scrollView. drawsBackground = true
154
154
scrollView. backgroundColor = . cyan
155
155
}
@@ -177,16 +177,16 @@ struct NavigationShowcase: View {
177
177
#endif
178
178
}
179
179
#if os(iOS) || os(tvOS)
180
- . introspect( . navigationView( style: . stack) , on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) ) { navigationController in
180
+ . introspect( . navigationView( style: . stack) , on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { navigationController in
181
181
navigationController. navigationBar. backgroundColor = . cyan
182
182
}
183
- . introspect ( . navigationView( style: . columns) , on: . iOS( . v13, . v14, . v15, . v16) ) { splitViewController in
183
+ . introspect ( . navigationView( style: . columns) , on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { splitViewController in
184
184
splitViewController. preferredDisplayMode = . oneOverSecondary
185
185
}
186
- . introspect ( . navigationView( style: . columns) , on: . tvOS( . v13, . v14, . v15, . v16) ) { navigationController in
186
+ . introspect ( . navigationView( style: . columns) , on: . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { navigationController in
187
187
navigationController. navigationBar. backgroundColor = . cyan
188
188
}
189
- . introspect ( . searchField, on: . iOS( . v15, . v16) , . tvOS( . v15, . v16) ) { searchBar in
189
+ . introspect ( . searchField, on: . iOS( . v15, . v16, . v17 ) , . tvOS( . v15, . v16, . v17 ) ) { searchBar in
190
190
searchBar. backgroundColor = . red
191
191
#if os(iOS)
192
192
searchBar. searchTextField. backgroundColor = . purple
@@ -209,7 +209,7 @@ struct ViewControllerShowcase: View {
209
209
}
210
210
}
211
211
. navigationViewStyle ( . stack)
212
- . introspect ( . view, on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) ) { viewController in
212
+ . introspect ( . view, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { viewController in
213
213
viewController. children. first? . view. backgroundColor = . cyan
214
214
}
215
215
}
@@ -229,23 +229,23 @@ struct SimpleElementsShowcase: View {
229
229
HStack {
230
230
TextField ( " Text Field Red " , text: $textFieldValue)
231
231
#if os(iOS) || os(tvOS)
232
- . introspect( . textField, on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) ) { textField in
232
+ . introspect( . textField, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { textField in
233
233
textField. backgroundColor = . red
234
234
}
235
235
#elseif os(macOS)
236
- . introspect( . textField, on: . macOS( . v10_15, . v11, . v12, . v13) ) { textField in
236
+ . introspect( . textField, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { textField in
237
237
textField. backgroundColor = . red
238
238
}
239
239
#endif
240
240
241
241
TextField ( " Text Field Green " , text: $textFieldValue)
242
242
. cornerRadius ( 8 )
243
243
#if os(iOS) || os(tvOS)
244
- . introspect( . textField, on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) ) { textField in
244
+ . introspect( . textField, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { textField in
245
245
textField. backgroundColor = . green
246
246
}
247
247
#elseif os(macOS)
248
- . introspect( . textField, on: . macOS( . v10_15, . v11, . v12, . v13) ) { textField in
248
+ . introspect( . textField, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { textField in
249
249
textField. backgroundColor = . green
250
250
}
251
251
#endif
@@ -254,22 +254,22 @@ struct SimpleElementsShowcase: View {
254
254
HStack {
255
255
Toggle ( " Toggle Red " , isOn: $toggleValue)
256
256
#if os(iOS)
257
- . introspect( . toggle, on: . iOS( . v13, . v14, . v15, . v16) ) { toggle in
257
+ . introspect( . toggle, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { toggle in
258
258
toggle. backgroundColor = . red
259
259
}
260
260
#elseif os(macOS)
261
- . introspect( . toggle, on: . macOS( . v10_15, . v11, . v12, . v13) ) { toggle in
261
+ . introspect( . toggle, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { toggle in
262
262
toggle. layer? . backgroundColor = NSColor . red. cgColor
263
263
}
264
264
#endif
265
265
266
266
Toggle ( " Toggle Green " , isOn: $toggleValue)
267
267
#if os(iOS)
268
- . introspect( . toggle, on: . iOS( . v13, . v14, . v15, . v16) ) { toggle in
268
+ . introspect( . toggle, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { toggle in
269
269
toggle. backgroundColor = . green
270
270
}
271
271
#elseif os(macOS)
272
- . introspect( . toggle, on: . macOS( . v10_15, . v11, . v12, . v13) ) { toggle in
272
+ . introspect( . toggle, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { toggle in
273
273
toggle. layer? . backgroundColor = NSColor . green. cgColor
274
274
}
275
275
#endif
@@ -279,22 +279,22 @@ struct SimpleElementsShowcase: View {
279
279
HStack {
280
280
Slider ( value: $sliderValue, in: 0 ... 100 )
281
281
#if os(iOS)
282
- . introspect( . slider, on: . iOS( . v13, . v14, . v15, . v16) ) { slider in
282
+ . introspect( . slider, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { slider in
283
283
slider. backgroundColor = . red
284
284
}
285
285
#elseif os(macOS)
286
- . introspect( . slider, on: . macOS( . v10_15, . v11, . v12, . v13) ) { slider in
286
+ . introspect( . slider, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { slider in
287
287
slider. layer? . backgroundColor = NSColor . red. cgColor
288
288
}
289
289
#endif
290
290
291
291
Slider ( value: $sliderValue, in: 0 ... 100 )
292
292
#if os(iOS)
293
- . introspect( . slider, on: . iOS( . v13, . v14, . v15, . v16) ) { slider in
293
+ . introspect( . slider, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { slider in
294
294
slider. backgroundColor = . green
295
295
}
296
296
#elseif os(macOS)
297
- . introspect( . slider, on: . macOS( . v10_15, . v11, . v12, . v13) ) { slider in
297
+ . introspect( . slider, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { slider in
298
298
slider. layer? . backgroundColor = NSColor . green. cgColor
299
299
}
300
300
#endif
@@ -305,11 +305,11 @@ struct SimpleElementsShowcase: View {
305
305
Text ( " Stepper Red " )
306
306
}
307
307
#if os(iOS)
308
- . introspect( . stepper, on: . iOS( . v13, . v14, . v15, . v16) ) { stepper in
308
+ . introspect( . stepper, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { stepper in
309
309
stepper. backgroundColor = . red
310
310
}
311
311
#elseif os(macOS)
312
- . introspect( . stepper, on: . macOS( . v10_15, . v11, . v12, . v13) ) { stepper in
312
+ . introspect( . stepper, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { stepper in
313
313
stepper. layer? . backgroundColor = NSColor . red. cgColor
314
314
}
315
315
#endif
@@ -318,11 +318,11 @@ struct SimpleElementsShowcase: View {
318
318
Text ( " Stepper Green " )
319
319
}
320
320
#if os(iOS)
321
- . introspect( . stepper, on: . iOS( . v13, . v14, . v15, . v16) ) { stepper in
321
+ . introspect( . stepper, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { stepper in
322
322
stepper. backgroundColor = . green
323
323
}
324
324
#elseif os(macOS)
325
- . introspect( . stepper, on: . macOS( . v10_15, . v11, . v12, . v13) ) { stepper in
325
+ . introspect( . stepper, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { stepper in
326
326
stepper. layer? . backgroundColor = NSColor . green. cgColor
327
327
}
328
328
#endif
@@ -333,11 +333,11 @@ struct SimpleElementsShowcase: View {
333
333
Text ( " DatePicker Red " )
334
334
}
335
335
#if os(iOS)
336
- . introspect( . datePicker, on: . iOS( . v13, . v14, . v15, . v16) ) { datePicker in
336
+ . introspect( . datePicker, on: . iOS( . v13, . v14, . v15, . v16, . v17 ) ) { datePicker in
337
337
datePicker. backgroundColor = . red
338
338
}
339
339
#elseif os(macOS)
340
- . introspect( . datePicker, on: . macOS( . v10_15, . v11, . v12, . v13) ) { datePicker in
340
+ . introspect( . datePicker, on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { datePicker in
341
341
datePicker. layer? . backgroundColor = NSColor . red. cgColor
342
342
}
343
343
#endif
@@ -352,11 +352,11 @@ struct SimpleElementsShowcase: View {
352
352
}
353
353
. pickerStyle ( SegmentedPickerStyle ( ) )
354
354
#if os(iOS) || os(tvOS)
355
- . introspect( . picker( style: . segmented) , on: . iOS( . v13, . v14, . v15, . v16) , . tvOS( . v13, . v14, . v15, . v16) ) { datePicker in
355
+ . introspect( . picker( style: . segmented) , on: . iOS( . v13, . v14, . v15, . v16, . v17 ) , . tvOS( . v13, . v14, . v15, . v16, . v17 ) ) { datePicker in
356
356
datePicker. backgroundColor = . red
357
357
}
358
358
#elseif os(macOS)
359
- . introspect( . picker( style: . segmented) , on: . macOS( . v10_15, . v11, . v12, . v13) ) { datePicker in
359
+ . introspect( . picker( style: . segmented) , on: . macOS( . v10_15, . v11, . v12, . v13, . v14 ) ) { datePicker in
360
360
datePicker. layer? . backgroundColor = NSColor . red. cgColor
361
361
}
362
362
#endif
0 commit comments