Skip to content
Mihaela's Labv1.116

How SwiftUI really works

Four investigations into how SwiftUI is built, measured against the real framework: its graph, an independent engine held against it, how it animates, and what its List really is.

  1. SwiftUI Is One Graph, Over 40+ Years of Engineering

    SwiftUI is the thin graph sitting above 40+ years of engineering. Measured against the real framework and read against Apple's own patent, it is a single demand-driven graph, and the least remarkable engine in the stack it rests on. Here is SwiftUI laid bare, with a hint of the far more interesting machines underneath.

  2. The SwiftUI Oracle: Measuring a Clean Room Against the Real Thing

    How I prove a from-scratch SwiftUI engine is correct by holding it against real SwiftUI in 125 differential tests, with the actual code, the harness, the firewall, and the floating-point floor that makes agreement mean identical

  3. How SwiftUI Animates, and Where It Is Not Like UIKit

    UIKit and AppKit hand the render server a description of a motion and walk away. SwiftUI does not, and it does not behave the same on a Mac as on an iPhone. I measured both on a Mac, two simulators, a real iPhone and a real iPad.

  4. SwiftUI Doesn't Have a List. It Wraps Someone Else's.

    A SwiftUI List looks like a SwiftUI thing. I looked underneath, on the Mac, an iPhone and an iPad, and what is running is a table view or a collection view from the platform, with SwiftUI's own cells and diffing on top. Here is what is there, what SwiftUI does with it, and what it costs.