Intro to Swift Macros — Automatic UI

Опубликовано: 09 Апрель 2026
на канале: Kit Langton
8,693
331

In order to get a taste of Swift's shiny, new macro system, we will implement a macro, start-to-finish, allowing us to derive user interfaces at compile-time.

WWDC's demo videos—as wonderful as they are—elide a good deal of real-world complexity and nuance. Hopefully, a longer-form video such as this, implementing a semi-non-trivial macro from scratch, will help allay some macro-related anxiety. Macros really shouldn't be as intimidating as they tend to be, so let us defang them together.

Another Macro Video:    • Swift Macros: Derive Any Wrappers  
Patreon:   / kitlangton