Avatar
Avatar
shiz
Swiftが自動で@MainActorを設定しているものがあって、その場合はなぜか出てこないんですよね(UIViewControllerなども)。ドキュメントやヘルプには出てきます。 https://developer.apple.com/documentation/uikit/uiresponder
もしかして SwiftUI の Viewbody が Main Actor Context で実行されるのもそれですか? body@MainActor 付いてないし、どこから来てるんだろうと思ってたんですが。 https://developer.apple.com/documentation/swiftui/view/body-swift.property