SwiftUI isn’t native and here’s why SwiftUI apps may sometimes feel janky. It ditches the key element that made animations run so smoothly on iOS since the original iPhone: Core Animation.
In SwiftUI animations run in-app without CA backing. Block the main thread: SwiftUI ball stalls while UIKit’s keeps moving on the render server.
You might be animating incorrectly in SwiftUI... nitter.cf/cifilter/status/210024…
It’s noting fancy, just a withAnimation call with repeat. Blocking is done with sleep.
Happy to get corrected, but it’s confirmed as expected behavior (perhaps your block handler doesn’t run on the ui thread?)
Sep 16, 2026 · 4:16 PM UTC
Stripped down the code to minimum if you’d like to take a look (it uses scale here to save a few lines of code but the effect is the same) gist.github.com/kmagiera/349…