Вы можете установить количество ячеек как (2050-2000) * 12
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return (2050-2000)*12
}
, затем определить переменную начального года и массив названий месяцев
var year:Int = 2000
let months:[String] = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
Теперь вы можете добавлять данные в коллекцию. ячейка
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
//define cell
cell.lblYear.text = "\(year+indexPath.row.quotientAndRemainder(dividingBy: 12).quotient)"
cell.lblMonth.text = months[indexPath.row % 12]
return cell
}