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

    }

    fileprivate func updateLayout() {

        // Get old offset ratio before resizing cells
        let oldXOffset = dayCollectionView.contentOffset.x
        let oldWidth = dayCollectionView.contentSize.width

        // Update scroll view content size
        self.contentSize = CGSize(width: self.frame.width, height: self.totalContentHeight)

        // Update size of day view cells
        updateDayViewCellSizeAndSpacing()
        // Update frame of day collection view
        dayCollectionView.frame = CGRect(x: 0, y: 0, width: self.frame.width, height: self.totalContentHeight)

        print(self.totalContentWidth, oldWidth)
        if oldWidth != self.totalContentWidth {
            dayCollectionView.contentOffset = CGPoint(x: calcXOffset(forDay: activeDay.dayInYear), y: 0)
        } else {
            dayCollectionView.contentOffset = CGPoint(x: oldXOffset, y: 0)
        }

        // Update content size
        dayCollectionView.contentSize = CGSize(width: self.totalContentWidth, height: self.totalContentHeight)

        self.weekView?.updateVisibleLabelsAndMainConstraints()
    }


    }

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

