         var inDates   = [Date]()
         var monthDates = [Date]()
         var outDates  = [Date]()
-
+        
         for indexPath in indexPaths {
             let info = dateInfoFromPath(indexPath)
             

        }
        
        let retval = DateSegmentInfo(indates: inDates, monthDates: monthDates, outdates: outDates)
        completionHandler(retval)
    }


    /// Returns the visible dates of the calendar.
    /// - returns:
    ///     - DateSegmentInfo
    public func visibleDates()-> DateSegmentInfo {
        let emptySegment = DateSegmentInfo(indates: [], monthDates: [], outdates: [])
        
        if !calendarIsAlreadyLoaded {
            return emptySegment
        }
        let rect = CGRect(x: calendarView.contentOffset.x + 1, y: calendarView.contentOffset.y + 1, width: calendarView.frame.width - 2, height: calendarView.frame.height - 2)
        guard let attributes = calendarViewLayout.layoutAttributesForElements(in: rect), attributes.count > 0 else {
            return emptySegment
        }
        
        let indexPaths: [IndexPath] = Array(Set(attributes.map { $0.indexPath })).sorted()
