Created
April 5, 2020 13:13
-
-
Save tifoaudii/20debf2eca34efd622d4524e607628dc to your computer and use it in GitHub Desktop.
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<MovieSection, Movie>() | |
snapshot.appendSections([MovieSection.topRated]) | |
snapshot.appendItems(viewModel.topRatedMovies) | |
snapshot.appendSections([MovieSection.onGoing]) | |
snapshot.appendItems(viewModel.ongoingMovies) | |
snapshot.appendSections([MovieSection.upcoming]) | |
snapshot.appendItems(viewModel.upcomingMovies) | |
snapshot.appendSections([MovieSection.popular]) | |
snapshot.appendItems(viewModel.popularMovies) | |
return snapshot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment