title: How can I bind an NSManagedObject to a table/collection view cell using Combine?
body: <p>I have an <code>NSFetchedResultsController</code> and a dynamic table view. My table view cells have a text label. How should I bind objects from the fetched results controller to the cell?</p>
  
  <p>In <a href="https://developer.apple.com/videos/play/wwdc2019/230/" rel="nofollow noreferrer">WWDC 2019 230</a>, there’s a code snippet where a core data object is bound to a view...</p>
  
  <pre><code>if let tag = try? fetchRequest.execute().first {
    nameSubscription = tag.publisher(for: \.name).assign(to: \.text, on: tagLabel)
    colorSubscription = tag.publisher(for: \.color).map({ $0 as? UIColor}).assign(to: \.textColor, on: tagLabel)
  }
  </code></pre>
  
  <p>Where should this happen in the context of a table view controller with a cell that has a label? Where should the subscriber (<code>AnyCancellable</code>) go? Will I need a collection of subscribers since there’s an indefinite number of cells?</p>