SwiftUI: how do I initialize a @StateObject variable before the app launches? – Ios swift
Basically in the AppDelegate method of my app I connect to Firebase. I then need to initialize my UserProfileService before the app launches. Inside UserProfileService init I connect to Firebase to get the authenticated user data and store it. The…