No, I haven't figure out.
Post
Replies
Boosts
Views
Activity
Same issue here.Does Catalyst not support DiffableDataSource?
Same issue on Xcode 12 Beta 5 and Big Sur Beta 5.
I have same issue.
Also, onMove not working on macOS Big Sur Beta 6.
I found the way to solve it.
Just implement empty UICollectionViewDragDelegate & UICollectionViewDropDelegate methods.
extension ReorderableCollectionViewController: UICollectionViewDragDelegate {
func collectionView(_ collectionView: UICollectionView, itemsForBeginning session: UIDragSession, at indexPath: IndexPath) -> [UIDragItem] {
return []
}
}
extension ReorderableCollectionViewController: UICollectionViewDropDelegate {
func collectionView(_ collectionView: UICollectionView, performDropWith coordinator: UICollectionViewDropCoordinator) {
}
}
I solved it:
Use this function
func controller(_ controller: NSFetchedResultsController<NSFetchRequestResult>, didChangeContentWith snapshot: NSDiffableDataSourceSnapshot<String,NSManagedObjectID>)
instead of
func controller(_ controller: NSFetchedResultsController<NSFetchRequestResult>, didChangeContentWith snapshot: NSDiffableDataSourceSnapshotReference)