iOS 18 ScrollView Introspect (#1135)

This commit is contained in:
Ethan Pippin 2024-06-30 01:04:57 -06:00 committed by GitHub
parent f2ba8d0a49
commit da0a6436c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View File

@ -19,7 +19,17 @@ struct ScrollViewOffsetModifier: ViewModifier {
}
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
}
}

View File

@ -204,8 +204,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/SwiftUI-Introspect",
"state" : {
"revision" : "0cd2a5a5895306bc21d54a2254302d24a9a571e4",
"version" : "1.1.3"
"revision" : "668a65735751432b640260c56dfa621cec568368",
"version" : "1.2.0"
}
},
{