AVPlayer observePlayingState with @ObservationTracked possible?

I am following this Apple Article on how to setup an AVPlayer. The only difference is I am using @Observable instead of an ObservableObject with @Published vars.

Using @Observable results in the following error: Cannot find '$isPlaying' in scope

If I remove the "$" symbol I get a bit more insight: Cannot convert value of type 'Bool' to expected argument type 'Published<Bool>.Publisher'

If I change by class to an OO, it works fine, although, is there anyway to get this to work with @Observable?

I’ll respond on your other, very similar, thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

AVPlayer observePlayingState with @ObservationTracked possible?
 
 
Q