         if selectedIndexes.contains(indexPath) {
             cell.select(withAnimation: .none)
         }
-//        selectedDates.forEach {
-//            if date == $0 {
-//                cell.select(withAnimation: .none)
-//            }
-//        }
         return cell
     }
     

        delegate?.calendarViewDidScroll?(self)
    }
    
    fileprivate func adjustStartDateForCenteredMonth(date: Date) -> Int {
        let offset: Int
        if scrollDirection == .vertical {
            let contentHeight = collectionView.contentSize.height
            let boundsHeight = collectionView.bounds.height
            offset = Int(floor((contentHeight - boundsHeight) / boundsHeight) / 2)
        } else {
            let contentWidth = collectionView.contentSize.width
            let boundsWidth = collectionView.bounds.width
            offset = Int(floor((contentWidth - boundsWidth) / boundsWidth) / 2)
        }
        
        guard let start = calendar.date(byAdding: .month, value: -offset, to: date) else {
            fatalError()
        }
        var s = start
        if let dateRange = dateRange, let maxStartDate = maxStartDate {
            if start.compare(dateRange.start) == .orderedAscending {
                s = dateRange.start
            } else if start.compare(maxStartDate) == .orderedDescending {
                s = maxStartDate
            }
        }
        
        guard let diff = calendar.dateComponents([.month], from: startDate, to: s).month else {
                fatalError()
        }
        
        self.startDate = s
        return diff
    }
    
    func recenterIfNeeded() {
        if scrollDirection == .vertical {
            let yOffset = max(collectionView.contentOffset.y, 0)
            let contentHeight = collectionView.contentSize.height

    /// Manager of registered class and identifiers.
    fileprivate var reuseQueue = ReusableObjectQueue()
    
    private var maxStartDate: Date? {
        var date: Date? = nil
        if let dateRange = dateRange {
            var comps = DateComponents()
