A SwiftUI View, ObservableObject, or @-Observable, should have either an @-MainActor or a detailed doc comment explaining exactly why @-MainActor isn't required. These are the only acceptable states. We need to all get really used to this, because wow, the bugs I am seeing ๐ต
@mattiem Is there a way you recommend to enforce this automatically or to set it globally? Or do I have to set it manually whenever I create a View/ObservableObject? (I see SwiftLint has an unmerged PR for ObservableObject.)
@zachahn @mattiem I guess you canโt just write
@MainActor
extension View {}
Can you? ๐