Reply to Observation and MainActor This is what I ended up doing. I applied the @MainActor macro to my MainView as I'm using Firebase, and I have to keep that on the main thread for detecting the rootViewController from their SDK. UI Frameworks SwiftUI Dec ’23