 import UIKit
+import DateTools
 
 protocol DayHeaderViewDelegate: class {
   func dateHeaderDateChanged(newDate: NSDate)


  func scrollviewDidScrollToView(view: UIView) {
    let activeView = view as! DaySelector
    activeView.selectedIndex = currentIndex
    swipeLabelView.date = activeView.selectedDate!
    delegate?.dateHeaderDateChanged(activeView.selectedDate!
    )


extension DayHeaderView: DaySelectorDelegate {
  func dateSelectorDidSelectDate(date: NSDate, index: Int) {
    currentWeekdayIndex = index
    swipeLabelView.date = date
    delegate?.dateHeaderDateChanged(date)
  }
