SwiftclassUIKitCore
UICollectionViewDiffableDataSource
class UIKit.UICollectionViewDiffableDataSource
Members 30
- deinit
deinit - field
let _impl: __UIDiffableDataSource - func
_expandCollapseAnimationContext(for: UICollectionView) -> _UICollectionViewUpdateExpandCollapseAnimationContext? - func
_performBatchApplyUsingReloadData(() -> ()) -> () - func
apply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Bool, completion: (() -> ())?) -> () - func
apply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Bool) async -> () - func
apply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Bool, completion: (() -> ())?) -> () - func
apply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Bool) async -> () - func
applySnapshotUsingReloadData(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, completion: (() -> ())?) -> () - func
applySnapshotUsingReloadData(UIKit.NSDiffableDataSourceSnapshot<A, B>) async -> () - func
collectionView(_: UICollectionView, numberOfItemsInSection: Int) -> Int - func
collectionView(_: UICollectionView, cellForItemAt: Foundation.IndexPath) -> UICollectionViewCell - func
collectionView(_: UICollectionView, viewForSupplementaryElementOfKind: String, at: Foundation.IndexPath) -> UICollectionReusableView - func
collectionView(_: UICollectionView, canMoveItemAt: Foundation.IndexPath) -> Bool - func
collectionView(_: UICollectionView, moveItemAt: Foundation.IndexPath, to: Foundation.IndexPath) -> () - func
collectionView(_: UICollectionView, indexPathForIndexTitle: String, at: Int) -> Foundation.IndexPath - func
description() -> String - func
index(for: A) -> Int? - func
indexPath(for: B) -> Foundation.IndexPath? - func
indexTitles(for: UICollectionView) -> [String]? - func
itemIdentifier(for: Foundation.IndexPath) -> B? - func
numberOfSections(in: UICollectionView) -> Int - func
sectionIdentifier(for: Int) -> A? - func
snapshot(for: A) -> UIKit.NSDiffableDataSourceSectionSnapshot<B> - func
snapshot() -> UIKit.NSDiffableDataSourceSnapshot<A, B> - init
UIKit.UICollectionViewDiffableDataSource.__allocating_init(collectionView: UICollectionView, cellProvider: (UICollectionView, Foundation.IndexPath, B) -> UICollectionViewCell?) -> UIKit.UICollectionViewDiffableDataSource<A, B> - init
UIKit.UICollectionViewDiffableDataSource.__allocating_init() -> UIKit.UICollectionViewDiffableDataSource<A, B> - var
final var reorderingHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.ReorderingHandlers { get set } - var
final var sectionSnapshotHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.SectionSnapshotHandlers<B> { get set } - var
var supplementaryViewProvider: ((UICollectionView, String, Foundation.IndexPath) -> UICollectionReusableView?)? { get set }
Header
class UICollectionViewDiffableDataSource<A, B>: __C.NSObject, __C.UICollectionViewDataSource where A: Swift.Hashable, B: Swift.Hashable { struct SectionSnapshotHandlers<A1> where A1: Swift.Hashable { var _impl: __C.UICollectionViewDiffableDataSourceSectionSnapshotHandlers var _shouldExpandItemHandler: ((_: A1) -> Swift.Bool)? var _willExpandItemHandler: ((_: A1) -> ())? var _shouldCollapseItemHandler: ((_: A1) -> Swift.Bool)? var _willCollapseItemHandler: ((_: A1) -> ())? var _snapshotForExpandingParentHandler: ((A1, UIKit.NSDiffableDataSourceSectionSnapshot<A1>) -> UIKit.NSDiffableDataSourceSectionSnapshot<A1>)? init() var shouldCollapseItem: ((_: A1) -> Swift.Bool)? { get set } var shouldExpandItem: ((_: A1) -> Swift.Bool)? { get set } var snapshotForExpandingParent: ((A1, UIKit.NSDiffableDataSourceSectionSnapshot<A1>) -> UIKit.NSDiffableDataSourceSectionSnapshot<A1>)? { get set } var willCollapseItem: ((_: A1) -> ())? { get set } var willExpandItem: ((_: A1) -> ())? { get set } } struct ReorderingHandlers { var _impl: __C.UICollectionViewDiffableDataSourceReorderingHandlers var _canReorderItemHandler: ((_: B) -> Swift.Bool)? var _willReorderItemHandler: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())? var _didReorderItemHandler: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())? init() var canReorderItem: ((_: B) -> Swift.Bool)? { get set } var didReorder: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())? { get set } var willReorder: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())? { get set } } let _impl: __C.__UIDiffableDataSource var supplementaryViewProvider: ((__C.UICollectionView, Swift.String, Foundation.IndexPath) -> __C.UICollectionReusableView?)? { get set } init(collectionView: __C.UICollectionView, cellProvider: @escaping (__C.UICollectionView, Foundation.IndexPath, B) -> __C.UICollectionViewCell?) func apply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Swift.Bool, completion: (() -> ())?) func apply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Swift.Bool) async func applySnapshotUsingReloadData(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, completion: (() -> ())?) func applySnapshotUsingReloadData(_: UIKit.NSDiffableDataSourceSnapshot<A, B>) async func snapshot() -> UIKit.NSDiffableDataSourceSnapshot<A, B> func sectionIdentifier(for: Swift.Int) -> A? func index(for: A) -> Swift.Int? func itemIdentifier(for: Foundation.IndexPath) -> B? func indexPath(for: B) -> Foundation.IndexPath? func numberOfSections(in: __C.UICollectionView) -> Swift.Int func collectionView(_: __C.UICollectionView, numberOfItemsInSection: Swift.Int) -> Swift.Int func collectionView(_: __C.UICollectionView, cellForItemAt: Foundation.IndexPath) -> __C.UICollectionViewCell func collectionView(_: __C.UICollectionView, viewForSupplementaryElementOfKind: Swift.String, at: Foundation.IndexPath) -> __C.UICollectionReusableView func _expandCollapseAnimationContext(for: __C.UICollectionView) -> (any __C._UICollectionViewUpdateExpandCollapseAnimationContext)? func collectionView(_: __C.UICollectionView, canMoveItemAt: Foundation.IndexPath) -> Swift.Bool func collectionView(_: __C.UICollectionView, moveItemAt: Foundation.IndexPath, to: Foundation.IndexPath) func indexTitles(for: __C.UICollectionView) -> [Swift.String]? func collectionView(_: __C.UICollectionView, indexPathForIndexTitle: Swift.String, at: Swift.Int) -> Foundation.IndexPath func description() -> Swift.String init() final var reorderingHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.ReorderingHandlers { get set } final var sectionSnapshotHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.SectionSnapshotHandlers<B> { get set } final func _performBatchApplyUsingReloadData(_: () -> ()) func apply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Swift.Bool, completion: (() -> ())?) func apply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Swift.Bool) async func snapshot(for: A) -> UIKit.NSDiffableDataSourceSectionSnapshot<B> deinit }