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`.
Glossary: Swift Beyond the Basics
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`.