79674475

Date: 2025-06-21 13:48:17
Score: 1.5
Natty:
Report link

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.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Observable
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jiropole