exyte / Grid

The most powerful Grid container missed in SwiftUI
MIT License
1.76k stars 93 forks source link

fix: global animation overrides animation in item views #42

Open sarensw opened 6 months ago

sarensw commented 6 months ago

The animation is set on the container view despite Apples recommendation to only apply an animation to leaf views. Any additional animations set on the leaf views (grid items in this case) is therefore ignored. But the animation for the grid should only happen when the layout of the grid items changes.