Skip to content

Glossary: SwiftUI

macro

Also written: macros

Code that writes more code for you when the file is compiled. Names starting with `#` or attributes like `@Observable` and `@Model` are macros.

Where the book teaches it

Related terms

#Preview@Observable@Model