title: UITableViewDiffableDataSource with different objects
body: <p>I am currently facing troubles using <code>UITableViewDiffableDataSource</code>.</p>
  
  <p>I would like to give a shot to this new feature, so I went on many tutorials on the net, but none of them seems to answer my issue.</p>
  
  <p>In my current viewController I have a <code>UITableView</code>, with 3 different objects (with different types each), but the <code>UITableViewDiffableDataSource</code> is strongly typed to one.</p>
  
  <p>Like: <code>dataSource = UITableViewDiffableDataSource &lt;SectionType, ItemType&gt;</code></p>
  
  <p>All my sections are fed with something like </p>
  
  <pre><code>func numberOfSections(in tableView: UITableView) -&gt; Int {
      return 3
  }
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      if section == 0 {        
          return bigObject.ObjectsOfType1.count
      } else if section == 1 {
          return bigObject.ObjectsOfType2.count
      } else {
          return bigObject.ObjectsOfType3.count
      }
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier) as! CustomTableViewCell
      if indexPath.section == 0 {
          cell.buildWithFirstObject(obj: bigObject.ObjectsOfType1[indexPath.row])
      } else if indexPath.section == 1 {
          cell.buildWithFirstObject(obj: bigObject.ObjectsOfType2[indexPath.row])
      } else {
          cell.buildWithFirstObject(obj: bigObject.ObjecstOfType3[indexPath.row])
      }
  }
  </code></pre>
  
  <p>Is there a trick to use diffable dataSource in my case ?</p>
  
  <p>Any help is appreciated ! Thank you for reading me :)</p>