gh123man / SwiftUI-Refresher

A native, customizable SwiftUI refresh control
MIT License
119 stars 12 forks source link

Adds leading spacing to scroll view when using `.overlay` #14

Closed mkaulfers closed 8 months ago

mkaulfers commented 11 months ago

As the title suggests, it adds this weird spacing to the leading edge of content in the scroll view. This is happening with the new .scrollTargetBehavior in iOS 17+ See the screenshot.

Simulator Screenshot - iPhone 15 Pro Max - 2023-10-05 at 15 07 40

gh123man commented 11 months ago

Hi, Thanks for the report. Could you provide a minimal reproducible example of the problem?

There is a sample app in this repo with overlay mode being used here you could use as a template.

I quickly tried a few combinations of .scrollTargetBehavior and could not reproduce the problem.

gh123man commented 8 months ago

Closing this issue as I cannot reproduce it.