Swift protocols and the main actor
A Swift by Sundell tutorial explains how the @MainActor attribute interacts with protocol declaration and adoption in Swift. It shows that a protocol annotated with @MainActor isolates all its requirements and extensions to the main actor, using an example ErrorPresenter protocol with UIKit-based error presentation methods.
AI-written summary, checked against the cited sources. How summaries work