One Logo Pool Ball
UIKit · IOS API REFERENCE

UITableViewDiffableDataSourceReference

class · iOS 13.0+ · SDK 27.1

@MainActor class UITableViewDiffableDataSourceReference

Members (11)

method · iOS 13.0+

applySnapshot

TypeScript
applySnapshotAnimatingDifferences(snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: boolean): Promise<void>
Swift declaration
func applySnapshot(_ snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: Bool)
method · iOS 13.0+

applySnapshot

TypeScript
applySnapshotAnimatingDifferencesCompletion(snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: boolean, completion?: ((() => void)) | null): Promise<void>
Swift declaration
func applySnapshot(_ snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: Bool, completion: (() -> Void)? = nil)
method · iOS 15.0+

applySnapshot

TypeScript
applySnapshotUsingReloadData(snapshot: NSDiffableDataSourceSnapshotReference): Promise<void>
Swift declaration
func applySnapshot(usingReloadData snapshot: NSDiffableDataSourceSnapshotReference)
method · iOS 15.0+

applySnapshot

TypeScript
applySnapshotUsingReloadDataCompletion(snapshot: NSDiffableDataSourceSnapshotReference, completion?: ((() => void)) | null): Promise<void>
Swift declaration
func applySnapshot(usingReloadData snapshot: NSDiffableDataSourceSnapshotReference, completion: (() -> Void)? = nil)
method · iOS 15.0+

index

TypeScript
index(identifier: unknown): Promise<number>
Swift declaration
func index(forSectionIdentifier identifier: Any) -> Int
method · iOS 13.0+

indexPath

TypeScript
indexPath(identifier: unknown): Promise<(_Foundation_IndexPath) | null>
Swift declaration
func indexPath(forItemIdentifier identifier: Any) -> IndexPath?
method · iOS 13.0+

itemIdentifier

TypeScript
itemIdentifier(indexPath: _Foundation_IndexPath): Promise<(unknown) | null>
Swift declaration
func itemIdentifier(for indexPath: IndexPath) -> Any?
method · iOS 15.0+

sectionIdentifier

TypeScript
sectionIdentifier(index: number): Promise<(unknown) | null>
Swift declaration
func sectionIdentifier(for index: Int) -> Any?
method · iOS 13.0+

snapshot

TypeScript
snapshot(): Promise<NSDiffableDataSourceSnapshotReference>
Swift declaration
func snapshot() -> NSDiffableDataSourceSnapshotReference
get · iOS 13.0+

defaultRowAnimation

TypeScript
get defaultRowAnimation(): Promise<UITableView_RowAnimation>
Swift declaration
var defaultRowAnimation: UITableView.RowAnimation { get set }
set · iOS 13.0+

defaultRowAnimation

TypeScript
setDefaultRowAnimation(value: UITableView_RowAnimation): Promise<void>
Swift declaration
var defaultRowAnimation: UITableView.RowAnimation { get set }

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UITableViewDiffableDataSourceReference.init(tableView:cellProvider:)

callback cannot propagate synchronous failure

UITableViewDiffableDataSourceReference.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →