Skip to content

Commit

Permalink
II-15-[added logging]
Browse files Browse the repository at this point in the history
  • Loading branch information
spopovshakuro committed Apr 21, 2024
1 parent f2a8b1c commit 6e4b689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PullToRefreshSwiftUI/PullToRefreshListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public struct PullToRefreshListView<AnimationViewType: View, ContentViewType: Vi
.listRowInsets(EdgeInsets())
.readLayoutData(coordinateSpace: .global, onChange: { (data) in
let offsetConclusive = data.frameInCoordinateSpace.minY - topOffset
print("\(offsetConclusive) = \(data.frameInCoordinateSpace.minY) - \(topOffset)")
debugPrint("Current offset: \(offsetConclusive) = \(data.frameInCoordinateSpace.minY) - \(topOffset)")
scrollViewState.contentOffset = offsetConclusive
updateProgressIfNeeded()
stopIfNeeded()
Expand All @@ -109,7 +109,7 @@ public struct PullToRefreshListView<AnimationViewType: View, ContentViewType: Vi
})
.readLayoutData(coordinateSpace: .global, onChange: { (data) in
topOffset = data.frameInCoordinateSpace.minY
print("topOffset = \(topOffset)")
debugPrint("Setting topOffset = \(topOffset)")
})
.onAppear(perform: {
scrollViewState.addGestureRecognizer()
Expand Down

0 comments on commit 6e4b689

Please sign in to comment.