Skip to content

Instantly share code, notes, and snippets.

@wdchris
Created May 18, 2020 17:42
Show Gist options
  • Save wdchris/5e9de3ff1adf04d28fba4c7a899e2269 to your computer and use it in GitHub Desktop.
Save wdchris/5e9de3ff1adf04d28fba4c7a899e2269 to your computer and use it in GitHub Desktop.
lazy var collectionViewDataSource: CalendarCollectionViewDataSource = {
let range = CalendarManager.getCalendarRange(withStartDate: startDate, withEndDate: endDate)
let collectionView = CalendarCollectionViewDataSource(calendarRange: range)
return collectionView
}()
collectionView.dataSource = self.collectionViewDataSource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment