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.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: