Skip to content

Fixed an animation-related issue on iOS

Latest

Choose a tag to compare

@mshibanami mshibanami released this 01 Jul 05:54
· 13 commits to main since this release
e5fa87c

On iOS, my app Redirect Web for Safari, which uses ResizingTextView, has an issue where the animation of adding a new row to the List in SwiftUI isn't smooth.

before_converted.mov

This usually doesn't happen, and I think it's an edge case related to UITableView used inside List.

To solve it, I added a view.layoutIfNeeded() to ensure the layout is recalculated immediately. This is how it works now:

after_converted.mov