Created
April 5, 2020 13:09
-
-
Save tifoaudii/ca5632eee49a4589926965b022679c94 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
let layout = UICollectionViewCompositionalLayout { (sectionIndex: Int, _ ) -> NSCollectionLayoutSection? in | |
let movieSections = MovieSection.allCases[sectionIndex] | |
switch movieSections { | |
case .topRated: return self.createTopRatedMovieSection() | |
case .onGoing: return self.createOnGoingMovieSection() | |
case .upcoming: return self.createUpcomingMovieSection() | |
case .popular: return self.createPopularMovieSection() | |
} | |
} | |
return layout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment