this post was submitted on 02 Jul 2023
4 points (100.0% liked)

Swift

365 readers
1 users here now

This group focus on the content related to the development of Apple Eco-system software. So feel free to share and talk about, for example;

founded 1 year ago
MODERATORS
 

MainActor is a new attribute introduced in Swift 5.5 as a global actor providing an executor which performs its tasks on the main thread. When building apps, it’s essential to perform UI updating tasks on the main thread, which can sometimes be challenging when using several background threads. Using the @MainActor attribute will help ensure your UI is always updated on the main thread.

you are viewing a single comment's thread
view the rest of the comments
[–] balder1993 2 points 1 year ago

That’s something I still have to learn from scratch in Swift.