     // MARK: - GESTURE, SCROLL & DATA SOURCE FUNCTIONS -
 
     @objc func tap(_ sender: UITapGestureRecognizer) {
-
         if !self.dayCollectionView.isDragging && !self.dayCollectionView.isDecelerating {
             scrollToNearestCell()
         }
     }
 
     func scrollViewDidScroll(_ scrollView: UIScrollView) {
-
         // Handle side and top bar animations
         self.weekView?.updateTopAndSideBarPositions()
 

     Generates and fills the scroll view with day columns.
     */
    private func initDayScrollView() {

        let flowLayout = DayCollectionViewFlowLayout()
        flowLayout.itemSize = CGSize(width: self.dayViewCellWidth, height: self.dayViewCellHeight)
        flowLayout.minimumLineSpacing = self.dayViewHorizontalSpacing
        flowLayout.velocityMultiplier = self.velocityOffsetMultiplier

        // Make day collection view and add it to frame
        dayCollectionView = DayCollectionView(frame: CGRect(x: 0,
                                                            y: 0,
                                                            width: self.bounds.width,
                                                            height: self.totalContentHeight),
                                              collectionViewLayout: flowLayout)
        dayCollectionView.contentOffset = CGPoint(x: calcXOffset(forDay: DayDate.today.dayInYear), y: 0)
        dayCollectionView.contentSize = CGSize(width: self.totalContentWidth, height: self.totalContentHeight)
        dayCollectionView.delegate = self
        dayCollectionView.dataSource = self
        self.addSubview(dayCollectionView)

        // Set content size for vertical scrolling
        self.contentSize = CGSize(width: self.bounds.width, height: dayCollectionView.frame.height)
        self.showNow()

        // Add tap gesture recognizer
        self.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(tap(_:))))

        // Set scroll view properties
        self.isDirectionalLockEnabled = true
        self.showsVerticalScrollIndicator = false

    }

    private func scrollToNearestCell() {
        let xOffset = dayCollectionView.contentOffset.x
        let yOffset = dayCollectionView.contentOffset.y

