There is now an excellent library to restore publishing to an @Observable: https://github.com/NSFatalError/Publishable. Import the package, add @Publishable
to your @Observable
classes. Access the per-member publishers via the new .publisher
var. This solution gives you all the best of @Observable
and requires almost no changes to existing Combine pipelines based on @ObservableObject
. Disclaimer: I am not the author of this package, just an admirer.