How do you subscribe to changes to ObservableObject from within NSViewControllerRepresentable?

256 Views Asked by At

I have a NSCollectionView I am trying to use with a SwiftUI application but need to access an ObservableObject (singleton) - I can access the singleton but can't seem to use Swift .observe nor can I find any reference to using ObservableObject from with the view controller.

0

There are 0 best solutions below