CombineViewModel icon indicating copy to clipboard operation
CombineViewModel copied to clipboard

Add ObservableObject.objectDidChange

Open sharplet opened this issue 5 years ago • 0 comments

This would provide a nice dual to objectWillChange and improve discoverability of the functionality. The implementation practically writes itself:

extension ObservableObject {
  public var objectDidChange: ObservableObjectPublisher<Self, DispatchQueue> {
    observe(on: .main)
  }
}

sharplet avatar Sep 23 '20 17:09 sharplet