title: How do I fix "Expression requiring global actor 'MainActor' cannot appear in default-value expression of property '_audioPlaybackManager'"?
body: <p>I have created a class called &quot;AudioPlaybackManager&quot; which is a MainActor class as a StateObject when the app starts up. Im getting this warning. How do I fix this?</p>
  <pre><code>@main
  struct Pro_Music_2App: App {
      @StateObject var audioPlaybackManager = AudioPlaybackManager() //This line is giving warning to me
      
      @StateObject var dataController = DataController()
      
      var body: some Scene {
          WindowGroup {
              ContentView()
                  .environmentObject(audioPlaybackManager.manager)
                  .environmentObject(audioPlaybackManager)
                  .environmentObject(audioPlaybackManager.manager.playlistManager)
                  .environmentObject(audioPlaybackManager.musicPlayerViewManager)
                  .environmentObject(audioPlaybackManager.scrubberViewModel)
                  .environment(\.managedObjectContext, dataController.container.viewContext)
                  
          }
      }
  }
  
  @MainActor class AudioPlaybackManager: ObservableObject {
      ...
  }
  </code></pre>