AndreaMiotto / PartialSheet

A SwiftUI Partial Sheet fully customizable with dynamic height
https://github.com/AndreaMiotto/PartialSheet/wiki
MIT License
1.73k stars 194 forks source link

Scroll View Extra Bottom Spacing #146

Closed Twigz closed 1 year ago

Twigz commented 2 years ago

Description

The .scrollView type for the partial sheet presentation modifier occasionally gains extra spacing at the bottom when a user scrolls. It seems like it happens when a user's tap target interacts where the scroll view and the handle tap targets intersect. It's not easy to reproduce 100% of the time, but it happens often enough. I've attached a screenshot and a video of it triggering in the sample app, where there is a block of whitespace the text gets cutoff by, rather than continuing to the bottom of the screen.

Environment

Xcode 13.3, iOS 15.4 Simulator (iPod Touch), iOS 15.4 Device (iPhone 13)

Screenshots / Video

Simulator Screen Shot - iPod touch (7th generation) - 2022-03-28 at 11 29 52

https://user-images.githubusercontent.com/1043416/160435048-437df50f-704a-4d00-a061-6576c64ad0bc.mov