     }
     
     func dateFromSection(section: Int) -> (startDate: NSDate, endDate: NSDate)? {
-        if monthInfo.count < 1 {
-            return nil
-        }
+        if monthInfo.count < 1 { return nil }
         
         let monthData = monthInfo[section]
         let itemLength = monthData[NUMBER_OF_DAYS_INDEX]

        
        let dayOfWeek: DaysOfWeek
        switch componentWeekDay {
        case 1:
            dayOfWeek = .Sunday
        case 2:
            dayOfWeek = .Monday
        case 3:
            dayOfWeek = .Tuesday
        case 4:
            dayOfWeek = .Wednesday
        case 5:
            dayOfWeek = .Thursday
        case 6:
            dayOfWeek = .Friday
        default:
            dayOfWeek = .Saturday
        }
        
        let row = {()->Int in return (itemIndex / 7) }
        
        let column = {()->Int in return (itemIndex % 7) }
        
        let cellState = CellState(
            isSelected: theSelectedIndexPaths.contains(indexPath),

    
    /// Enable or disable paging when the calendar view is scrolled
    public var pagingEnabled: Bool = true {
        didSet { calendarView.pagingEnabled = pagingEnabled }
    }
    
    
    /// Enable or disable swipe scrolling of the calendar with this variable
    public var scrollEnabled: Bool = true {
        didSet { calendarView.scrollEnabled = scrollEnabled }
    }
    
    /// This is only applicable when calendar view paging is not enabled. Use this variable to decelerate the scroll movement to make it more 'sticky' or more fluid scrolling
