Post

Replies

Boosts

Views

Activity

Reply to UICollectionViewDiffableDataSource and Reordering Custom Cells???
Update:        dataSource.reorderingHandlers.willReorder = { [weak self] (transaction) in         guard let self = self else {           return         }         DispatchQueue.main.async {           self.dataSource.apply(transaction.finalSnapshot, animatingDifferences: true) {                         }         }       } This doesn't even work!!!!!!!!!!!!! The following does work:       dataSource.reorderingHandlers.didReorder = { [weak self] (transaction) in         guard let self = self else {           return         }         self.collectionItems = transaction.finalSnapshot.itemIdentifiers(inSection: 0)       } But updating the collection to the proper state after it's supposed to be in the proper state seems wrong. I also find the amount of blinking both solutions incur to be unacceptable.
Jul ’21
Reply to Debugging CAAnimation that will not start under very strange circumstances.
Demo project is here: https://github.com/NickNeedsAName/caanimissuedemo To see the issue in the demo project, DL -> run Tap "Present View" Observe Console logs - fade begin -- delta: ~1s, animation did stop Tap anywhere to dismiss the presented view Tap "Push View" Tap "Back" Tap "Present View" Observe Console logs - NONE Tap anywhere to dismiss the presented view Observe Console logs - fade begin -- delta:
Jan ’24