Questions tagged [diffabledatasource]

92 questions
0
votes
1 answer

CellProvider Closure never gets executed for UICollectionViewDiffableDataSource

class PropertyCollViewController: UIViewController { @IBOutlet weak var collectionView: UICollectionView! var sections = Person.getSectionData() typealias PropertyDataSource = UICollectionViewDiffableDataSource
0
votes
1 answer

DiffableDataSource throws "Fatal: supplied identifiers are not unique." when wrapping MPMediaItem inside a struct

I used UITableviewDiffableDataSource with UITableView to display songs from the music library. This code worked fine: let tracks: [MPMediaItem] = MPMediaQuery.songs().items ?? [] self.dataSource.apply(section: 0, items: tracks) But when I wrapped…
kimwii
  • 81
  • 1
  • 7
1 2 3 4 5 6
7