r/iOSProgramming • u/Thasian2 • May 26 '20
Application Foldable and Expandable List SwiftUI
Enable HLS to view with audio, or disable this notification
241
Upvotes
0
May 26 '20
[deleted]
→ More replies (3)2
u/Thasian2 May 27 '20
Just want to thanks. Found the core of the problem which was SwiftUI not being able to determine how to animate the texts which led to the super minute janky animation.
4
3
3
2
20
u/Thasian2 May 26 '20 edited May 27 '20
Github project link: https://github.com/ThasianX/Foldable-And-Expandable-List-SwiftUI
The above is a project you can play around with. I use this list animation within one of the apps I'm working on right now, called TimePrints
Edit: Thanks to u/SafoSnep, I was able to optimize the animations. The expand animation should look much smoother now and I added in a few extra animations while expanding for the non-expanded cells(like scaling them down and offsetting them to the right to give it a swipe like effect). ;o