Created
July 3, 2020 08:11
-
-
Save stevencurtis/ab9f612e827476f77bd98883fa730467 to your computer and use it in GitHub Desktop.
thesnapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var snapshot = NSDiffableDataSourceSnapshot<Section, AnyHashable>() | |
snapshot.appendSections([.appSection, .new, .medium, .features, .links, .buttons, .terms]) | |
snapshot.appendItems(symbols, toSection: .appSection) | |
snapshot.appendItems(medium, toSection: .medium) | |
snapshot.appendItems(featured, toSection: .features) | |
snapshot.appendItems(newupdated, toSection: .new) | |
snapshot.appendItems(quickLinks, toSection: .links) | |
snapshot.appendItems(buttons, toSection: .buttons) | |
snapshot.appendItems(terms, toSection: .terms) | |
dataSource.apply(snapshot, animatingDifferences: false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment