         
         let dayCell = collectionView.dequeueReusableCellWithReuseIdentifier(cellReuseIdentifier, forIndexPath: indexPath) as! JTAppleDayCell
         let cellState = cellStateFromIndexPath(indexPath)
-
+        
         let date = dateFromPath(indexPath)!
         delegate?.calendar(self, isAboutToDisplayCell: dayCell.cellView, date: date, cellState: cellState)
-
+        
         return dayCell
     }
     

        if !firstDayOfDate!.isWithinInclusiveBoundaryDates(startOfMonthCache, endDate: endOfMonthCache) {
            return
        }

        let periodApart = calendar.components(.Month, fromDate: startOfMonthCache, toDate: date, options: [])
        let monthsApart = periodApart.month
        let segmentIndex = monthsApart * numberOfSectionsPerMonth
        let sectionIndexPath =  pathsFromDates([date])[0]
        let page = currentSectionPage
        
        delayedExecutionClosure = completionHandler
        
        let segmentToScrollTo = NSIndexPath(forItem: 0, inSection: sectionIndexPath.section)
        
        if page != segmentIndex {
            let position: UICollectionViewScrollPosition = self.direction == .Horizontal ? .Left : .Top
            delayRunOnMainThread(0.0, closure: { 
                self.calendarView.scrollToItemAtIndexPath(segmentToScrollTo, atScrollPosition: position, animated: animateScroll)
                if  !animateScroll {
                    self.scrollViewDidEndScrollingAnimation(self.calendarView)
                }
            })
        } else {
            scrollViewDidEndScrollingAnimation(calendarView)
        }
    }
    

    override public func layoutSubviews() {
        self.frame = super.frame
    }
    
    // MARK: Setup
    func initialSetup() {
        self.clipsToBounds = true
