WWDC19

Table of Contents

=================

Advances In UI Data Sources - Wednesday

Session materials: https://developer.apple.com/videos/play/wwdc2019/220/

Current State-of-the-Art

A New Approach

Diffable Data Source

======================

self.dataSource = UITableViewDiffableDataSource<Section, Item>(tableView: tableView) { // the code we usually execute at cellForRowAtIndexPath to reflect changes }

======================

datasource.apply(snapshot) ```

Considerations

Constructing Snapshots

Configuring Snapshots

Identifiers

What About IndexPath based APIs?

Performance