What is @MainActor In Swift?
Today I want to explain a simple topic: the use of @MainActor when you're using Swift. I came across this macro while programming async with SwiftUI, so I want to share my findings with you. Let's start with a scenario so we can understand the problem