The declarative approach on Apple platforms.
WHAT IT IS
A framework for building interfaces by describing what should appear for a given state.
WHAT IT REPLACES
Constructing and updating view objects manually.
WHAT THE CORE IDEA IS
Views are values describing the interface, recreated when state changes.
WHAT THAT MEANS
Views are cheap and disposable, not objects you hold and modify.
WHAT DRIVES UPDATES
State that the framework observes.
WHAT IT PROVIDES BEYOND CONVENIENCE
Automatic support for dark mode, dynamic type, accessibility and localisation Previews during development One framework across Apple platforms
WHY THAT ACCESSIBILITY POINT MATTERS
Much of it works by default, which is rarely true of hand-built interfaces.
WHAT IT COSTS
Requires recent platform versions Some interactions still require the older framework Behaviour changes between versions
WHAT TO CHECK BEFORE ADOPTING
Your minimum supported version.
WHAT TO LEARN FIRST
State, bindings, and view composition.