title: How to change an @ObservedObject variable in SceneDelegate?
body: <p>I have a model here:</p>
  <pre><code>class Instance: ObservableObject {
      @Published var status: Status = .offline
  </code></pre>
  <p>which updates the following view when it changes...</p>
  <pre><code>struct HomeView: View {
      @ObservedObject var instance = Instance()
      var body: some View {
          Text(self.instance.status.text)
      }
  }
  </code></pre>
  <p>I want to change the value of <code>status</code> when my app opens. E.g, in <code>SceneDelegate</code>:</p>
  <pre><code>class SceneDelegate: UIResponder, UIWindowSceneDelegate {
      
      var window: UIWindow?
  
      func sceneWillEnterForeground(_ scene: UIScene) {
          // Change Instance variable status to .online
      }
  </code></pre>
  <p>How can I achieve this?</p>
  <p><strong>Edit:</strong></p>
  <pre><code>struct ContentView: View {
      @ObservedObject var auth = UserAuth()
      var body: some View {
          Group {
              if auth.uid != nil { HomeView(auth: auth) } else { LoginView(auth: auth) }
          }
      }
  }
  </code></pre>