Skip to content

Commit

Permalink
Support iOS 17
Browse files Browse the repository at this point in the history
  • Loading branch information
gh123man committed Aug 21, 2023
1 parent bc2c5dc commit fd8ab7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"object": {
"pins": [
{
"package": "Introspect",
"package": "swiftui-introspect",
"repositoryURL": "https://github.com/siteline/SwiftUI-Introspect.git",
"state": {
"branch": null,
"revision": "c18951c747ab62af7c15e17a81bd37d4fd5a9979",
"version": "0.2.3"
"revision": "1136c9a348329887844de9353107c787becc675b",
"version": "0.11.0"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(name: "Introspect", url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "0.1.4"),
.package(name: "SwiftUIIntrospect", url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "0.11.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "ScrollViewLoader",
dependencies: ["Introspect"]),
dependencies: ["SwiftUIIntrospect"]),
]
)
4 changes: 2 additions & 2 deletions Sources/ScrollViewLoader/ScrollViewLoader.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import SwiftUI
import UIKit
import Introspect
import SwiftUIIntrospect

public enum HeightChangeConfig {
case always
Expand Down Expand Up @@ -47,7 +47,7 @@ struct DelegateHolder<Content: View>: View {

var body: some View {
content
.introspectScrollView { scrollView in
.introspect(.scrollView, on: .iOS(.v15, .v16, .v17)) { scrollView in
scrollView.delegate = offsetNotifier
offsetNotifier.scrollView = scrollView
offsetNotifier.scrollViewDidScroll(scrollView)
Expand Down

0 comments on commit fd8ab7b

Please sign in to comment.