Skip to content

Glossary: Swift Beyond the Basics

main actor

Also written: @MainActor

The built-in actor that runs user-interface code. Mark code `@MainActor` to keep it there, and other tasks call it with `await`.

Where the book teaches it

Related terms

actorisolated@concurrent