@@ -20,7 +20,7 @@ For instance, when introspecting a `ScrollView`...
20
20
ScrollView {
21
21
Text (" Item 1" )
22
22
}
23
- .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 )) { scrollView in
23
+ .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 , . v26 )) { scrollView in
24
24
// do something with UIScrollView
25
25
}
26
26
```
@@ -38,7 +38,7 @@ By default, the `.introspect` modifier acts directly on its _receiver_. This mea
38
38
``` swift
39
39
ScrollView {
40
40
Text (" Item 1" )
41
- .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 ), scope : .ancestor ) { scrollView in
41
+ .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 , . v26 ), scope : .ancestor ) { scrollView in
42
42
// do something with UIScrollView
43
43
}
44
44
}
@@ -157,7 +157,7 @@ List {
157
157
tableView.backgroundView = UIView ()
158
158
tableView.backgroundColor = .cyan
159
159
}
160
- .introspect (.list , on : .iOS (.v16 , .v17 , .v18 )) { collectionView in
160
+ .introspect (.list , on : .iOS (.v16 , .v17 , .v18 , . v26 )) { collectionView in
161
161
collectionView.backgroundView = UIView ()
162
162
collectionView.subviews .dropFirst (1 ).first ? .backgroundColor = .cyan
163
163
}
@@ -169,7 +169,7 @@ List {
169
169
ScrollView {
170
170
Text (" Item" )
171
171
}
172
- .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 )) { scrollView in
172
+ .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 , . v26 )) { scrollView in
173
173
scrollView.backgroundColor = .red
174
174
}
175
175
```
@@ -181,7 +181,7 @@ NavigationView {
181
181
Text (" Item" )
182
182
}
183
183
.navigationViewStyle (.stack )
184
- .introspect (.navigationView (style : .stack ), on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 )) { navigationController in
184
+ .introspect (.navigationView (style : .stack ), on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 , . v26 )) { navigationController in
185
185
navigationController.navigationBar .backgroundColor = .cyan
186
186
}
187
187
```
@@ -190,7 +190,7 @@ NavigationView {
190
190
191
191
``` swift
192
192
TextField (" Text Field" , text : < #Binding < String > #> )
193
- .introspect (.textField , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 )) { textField in
193
+ .introspect (.textField , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 , . v26 )) { textField in
194
194
textField.backgroundColor = .red
195
195
}
196
196
```
@@ -290,7 +290,7 @@ struct ContentView: View {
290
290
ScrollView {
291
291
// ...
292
292
}
293
- .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 )) { scrollView in
293
+ .introspect (.scrollView , on : .iOS (.v13 , .v14 , .v15 , .v16 , .v17 , .v18 , . v26 )) { scrollView in
294
294
self .scrollView = scrollView
295
295
}
296
296
}
0 commit comments