nachonavarro / Pages

📖 A lightweight, paging view solution for SwiftUI
MIT License
556 stars 53 forks source link

Issue with page animation triggering when ANY state variable changes on page #29

Open chasedson opened 2 years ago

chasedson commented 2 years ago

I'm having an issue with the library, where any time any of my other state variables change on page, the animation triggers.

If I've got a Page 0, and a Page 1, the "moving back to 0" animation triggers anytime a variable changes on page 0 (UX element, etc).

Is there any way to prevent this from happening?

chasedson commented 2 years ago

Looks like moving everything into its' own separate view seems to have resolved this issue for now. I'll try to submit a PR with a fix for this in the next week or so