Other Classes
The following classes are available globally.
-
A diffable data source created specifically to coordinate
UICollectionView.reconfigureItems(at:)withCollectionViewChatLayout.reconfigureItems(at:).Apple’s
UICollectionViewDiffableDataSourceforwards snapshot application to private__UIDiffableDataSourceand_UIDiffableDataSourceViewUpdaterobjects. Those objects use the private_performDiffableUpdate(_:)transaction and an internalcommitAlongsideHandlerto replace identifier state while UIKit applies the view updates.
See moreChatLayoutDiffableDataSourcecannot use those private hooks, socommitAlongsideUpdatesexposes the equivalent synchronization point within its publicperformBatchUpdatestransaction. Clients must update any application-owned models read by the cell provider and layout delegate in that closure so they remain consistent with the new snapshot.Declaration
Swift
@MainActor open class ChatLayoutDiffableDataSource<SectionID, ItemID> : NSObject, UICollectionViewDataSource where SectionID : Hashable, SectionID : Sendable, ItemID : Hashable, ItemID : Sendable
Other Classes Reference