   let pagingScrollView = PagingScrollView<DaySelector>()
   lazy var swipeLabelView: SwipeLabelView = SwipeLabelView(date: Date().dateOnly())
 
-  init(selectedDate: Date) {
+  public init(selectedDate: Date) {
     self.currentDate = selectedDate
     super.init(frame: CGRect.zero)
     configure()

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

    return calendar.date(from: components)!
  }

  public func selectDate(_ selectedDate: Date) {
    var selectedDate = selectedDate.dateOnly()
    let centerDaySelector = pagingScrollView.reusableViews[1]
    let startDate = centerDaySelector.startDate.dateOnly()

    let daysFrom = selectedDate.days(from: startDate, calendar: calendar)

    if daysFrom < 0 {
      pagingScrollView.scrollBackward()
      currentWeekdayIndex = abs(daysInWeek + daysFrom % daysInWeek)
    } else if daysFrom > daysInWeek - 1 {
      pagingScrollView.scrollForward()
      currentWeekdayIndex = daysFrom % daysInWeek
    } else {
      centerDaySelector.selectedDate = selectedDate
    }
