fermoya / SwiftUIPager

Native Pager in SwiftUI
MIT License
1.27k stars 166 forks source link

Add Pager clipped property #315

Open yurihan opened 1 year ago

yurihan commented 1 year ago

I found an issue where the top and bottom of the Pager were being clipped by default, causing problems when trying to achieve the effect seen in the video below.

https://user-images.githubusercontent.com/4598443/229994317-7b2700fc-9e5c-460e-8a9e-53ace75cad54.mov

To fix this issue, I added a new property called isClipped to the Pager, which can be set to false to prevent the clipping.

Pager(...).isClipped(false)

https://user-images.githubusercontent.com/4598443/229994359-c02fc82b-8f44-4d14-8c48-098ba1db5c39.mov

AlTavares commented 1 year ago

Excellent, I was having the same issue, but with shadows.

grdsdev commented 1 year ago

Having the same issue, would be nice to have this merged, @fermoya can you review this please?