   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()

    return calendar.date(from: components)!
  }

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

    let daysFrom = selectedDate.days(from: startDate as Date!, calendar: calendar)
    if daysFrom < 0 {
      pagingScrollView.scrollBackward()
    } else if daysFrom > daysInWeek - 1 {
      pagingScrollView.scrollForward()
      currentWeekdayIndex = 0
    } else {
      centerDaySelector.selectedDate = selectedDate
    }

    }
    let centerDaySelector = pagingScrollView.reusableViews[1]
    centerDaySelector.selectedDate = selectedDate
    currentWeekdayIndex = centerDaySelector.selectedIndex
  }

  func beginningOfWeek(_ date: Date) -> Date {
