fermoya / SwiftUIPager

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

[FEAT] Ability to not clip children #325

Open natario1 opened 11 months ago

natario1 commented 11 months ago

Is your feature request related to a problem? Please describe. I'm working on an UI with a vertical list where each item is a horizontal Pager. Each pager contains images that are zoomable with a pinch gesture, and when zoom grows, the image is supposed to be drawn outside of the pager boundaries. Think of the Instagram feed, when the post is a carousel of images.

Describe the solution you'd like An option to remove the clipped() modifier that pager applies by default. I removed it in a local clone and it works very well. Of course it wouldn't work in all scenarios, so this should be a configurable option I guess.

Describe alternatives you've considered None.

Additional context Thanks for your work! My experience with this library has been very smooth.

brstorm-jonghyunlee commented 4 months ago

I also want an option to disable clipped() for card flip animation. The cards are clipped vertically when flip.