**Switching to Observation framework worked**
I’m surprised to say it, but converting my code from using ObservableObject to the newer Observation framework that Apple released fixed the problem I had with the view rerendering.
I did read that the Observation framework had improvements made to rerendering, as it will only rerender the views that actually need to be rerendered, but I didn’t know it would work just immediately without making any significant changes to the codebase. So now, the rotation animation for the chevron is working and it looks great.
It would be nice to have an animation where the contents of a folder will slide down when expanding the folder. And likewise, when collapsing a folder, the contents should slide up. #dev #swift
View quoted note →