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

import UIKit

protocol DayHeaderViewDelegate: class {
  func dateHeaderDateChanged(newDate: NSDate)


  var calendar = NSCalendar.autoupdatingCurrentCalendar()

  var currentWeekdayIndex = -1

  var daySymbolsViewHeight: CGFloat = 20
  var pagingScrollViewHeight: CGFloat = 40
