fermoya / SwiftUIPager

Native Pager in SwiftUI
MIT License
1.29k stars 171 forks source link

[BUG] loopPages + scale. First and last elements not scaling up #259

Closed darecki closed 2 years ago

darecki commented 2 years ago

Describe the bug When using the infinite pager (loopPages()) with scale (.interactive(scale: xxx)) the first and last elements are not properly scaled up.

To Reproduce To reproduce this behavior it's enough to add .interactive(scale: 0.6) to the InfiniteExampleView example provided

Expected behavior I expect to see the next element scaling up when dragging between the first and last elements on the list.

Screenshots / Videos

https://user-images.githubusercontent.com/3084606/160618413-fed09eae-2c1f-4bc3-affb-059d4f3f36fd.mp4

See the video and compare the animation when dragging between:

Environment:

fermoya commented 2 years ago

It should be fixed in 2.3.3-beta.5