         }
     }
     
-    @objc func setBarHiddenByTapGesture() {
+    @objc open func setBarHiddenByTapGesture() {
         cancelAutoBarHidden()
         setBarsHidden(hidden: !statusBarHidden, animated: true)
     }

        }
    }

    public func refreshPageHud() {
        currentPageIndex = pagingView.currentPageIndex
    }
    
    @objc public func hideBars() {
        setBarsHidden(hidden: true, animated: true)
    }
    
    public func setBarsHidden(hidden: Bool, animated: Bool) {
        if let toolbarItems = toolbarItems, toolbarItems.count > 0 {
            if showSlider, pagingView.direction.isVertical() {
                navigationController?.setToolbarHidden(hidden, animated: animated)

        }
    }
    
    open var currentPageIndex: Int {
        set {
            updateSliderValue()
            currentPageHudLabel.text = "\(newValue + 1)/\(numberOfPages)"
