     }
     let centerDaySelector = pagingScrollView.reusableViews[1]
     centerDaySelector.selectedDate = selectedDate
+    currentWeekdayIndex = centerDaySelector.selectedIndex
   }
 
   func beginningOfWeek(_ date: Date) -> Date {

    let activeView = pagingScrollView.reusableViews[index]
    activeView.selectedIndex = currentWeekdayIndex
    swipeLabelView.date = activeView.selectedDate!
    delegate?.dateHeaderDateChanged(activeView.selectedDate! as Date)
  }
}

  let pagingScrollView = PagingScrollView<DaySelector>()
  lazy var swipeLabelView: SwipeLabelView = SwipeLabelView(date: Date().dateOnly())

  public init(selectedDate: Date) {
    self.currentDate = selectedDate
    super.init(frame: CGRect.zero)
    configure()
