Tag: MainActor

Async/Await and MainActor Strategies

Pretty much every article that discusses Swift async/await will throw in a comment regarding @MainActor and how it can be used to ensure that any updates to the user interface will occur on the main thread. That’s all well and good… but just where should the @MainActor...