iOS 18 ScrollView Introspect (#1135)
This commit is contained in:
parent
f2ba8d0a49
commit
da0a6436c1
|
@ -19,7 +19,17 @@ struct ScrollViewOffsetModifier: ViewModifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
func body(content: Content) -> some View {
|
func body(content: Content) -> some View {
|
||||||
content.introspect(.scrollView, on: .iOS(.v15), .iOS(.v16), .iOS(.v17), .tvOS(.v15), .tvOS(.v16), .tvOS(.v17)) { scrollView in
|
content.introspect(
|
||||||
|
.scrollView,
|
||||||
|
on: .iOS(.v15),
|
||||||
|
.iOS(.v16),
|
||||||
|
.iOS(.v17),
|
||||||
|
.iOS(.v18),
|
||||||
|
.tvOS(.v15),
|
||||||
|
.tvOS(.v16),
|
||||||
|
.tvOS(.v17),
|
||||||
|
.tvOS(.v18)
|
||||||
|
) { scrollView in
|
||||||
scrollView.delegate = scrollViewDelegate
|
scrollView.delegate = scrollViewDelegate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,8 +204,8 @@
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/siteline/SwiftUI-Introspect",
|
"location" : "https://github.com/siteline/SwiftUI-Introspect",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "0cd2a5a5895306bc21d54a2254302d24a9a571e4",
|
"revision" : "668a65735751432b640260c56dfa621cec568368",
|
||||||
"version" : "1.1.3"
|
"version" : "1.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue