Jacob’s Tech Tavern

Jacob’s Tech Tavern

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
SwiftUI Scroll Performance: The 120FPS Challenge
Copy link
Facebook
Email
Notes
More

SwiftUI Scroll Performance: The 120FPS Challenge

Squeezing high performance from the magic

Jacob Bartlett's avatar
Jacob Bartlett
May 05, 2025
∙ Paid
21

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
SwiftUI Scroll Performance: The 120FPS Challenge
Copy link
Facebook
Email
Notes
More
3
Share

SwiftUI is like magic.

But, like all well-designed magic systems, it comes with a cost.

What, you thought that beautiful declarative syntax and automatic data bindings come free? Think again.

Swift’s pesky memory safety mechanisms put it at a performance disadvantage compared to unsafe languages like C and C++. In the same way, SwiftUI’s beautiful reactive data-flow gobbles CPU cycles like an Ozempic patient at the hot-dog eating contest.

To achieve the maximum 120Hz refresh rate, the main thread has to execute all layout computation and rendering in 8.3ms to avoid a frame drop: the dreaded hitch. With system overhead, you’re lucky to get 5ms for this work.

SwiftUI can run into very painful performance problems when dealing with infinite scrolling feeds. Today, we will investigate these performance problems, understand why they happen, and explore techniques to mitigate them, making your SwiftUI performance buttery smooth 🧈.

The paywall below goes down on 26 May, when the full article will be emailed to free subscribers. Subscribe now if you haven’t already!

If you don’t want to wait, you can upgrade for $7.50 a month. Full subscribers to Jacob’s Tech Tavern unlock Quick Hacks, my advanced tips series, and enjoy my long-form articles 3 weeks before anyone else.

Still unsure? How about 2 week test-drive?

Get 14 day free trial

Keep reading with a 7-day free trial

Subscribe to Jacob’s Tech Tavern to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Jacob Bartlett
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More