     }
     
     public func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
-        // print("scrollview end decelerating")
+        // This delegate will be called, when user reaches at the end of scrollview content size. This will up custom view up to after animation step, if it remains undone.
         
         // top bar shouldn't be allowed to scroll in certain circumstances. please check this instance declaration for more information.
         guard isAllowTopbarAnimation else{

    }
    
    public func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
        // print("scrollview did end dragging")
        
        // top bar shouldn't be allowed to scroll in certain circumstances. please check this instance declaration for more information.

            if !scrollView.isDecelerating{
                if self.enumScrollPosition == .up {
                    UIView.animate(withDuration: 0.1, animations: {
                        self.upCustomView()
                    })
                }
            }
