Skip to content

Commit fd8ab7b

Browse files
committed
Support iOS 17
1 parent bc2c5dc commit fd8ab7b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Examples/ScrollViewLoaderTest.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ let package = Package(
1616
],
1717
dependencies: [
1818
// Dependencies declare other packages that this package depends on.
19-
.package(name: "Introspect", url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "0.1.4"),
19+
.package(name: "SwiftUIIntrospect", url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "0.11.0"),
2020
],
2121
targets: [
2222
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2323
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2424
.target(
2525
name: "ScrollViewLoader",
26-
dependencies: ["Introspect"]),
26+
dependencies: ["SwiftUIIntrospect"]),
2727
]
2828
)

Sources/ScrollViewLoader/ScrollViewLoader.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import SwiftUI
33
import UIKit
4-
import Introspect
4+
import SwiftUIIntrospect
55

66
public enum HeightChangeConfig {
77
case always
@@ -47,7 +47,7 @@ struct DelegateHolder<Content: View>: View {
4747

4848
var body: some View {
4949
content
50-
.introspectScrollView { scrollView in
50+
.introspect(.scrollView, on: .iOS(.v15, .v16, .v17)) { scrollView in
5151
scrollView.delegate = offsetNotifier
5252
offsetNotifier.scrollView = scrollView
5353
offsetNotifier.scrollViewDidScroll(scrollView)

0 commit comments

Comments
 (0)