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

PK-V
- 194
- 1
- 9
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