         if isSliderEnabled, showSlider, let toolbarItems = toolbarItems, toolbarItems.count > 0 {
             toolbarPosition = navigationController?.toolbar.frame.minY ?? view.frame.height
         }
-        updateHudHorizontalPosition(position: toolbarPosition)
+        else if #available(iOS 11.0, *) {
+            toolbarPosition = toolbarPosition - bottomLayoutGuide.length
+        }
+        updateHudVerticalPosition(position: toolbarPosition)
     }
     
     func updateSliderValue() {

            setToolBarHidden(hidden: !showSlider, animated: true)
            setHudHidden(hidden: !showPageNumberHud, animated: false)
        }
        updateCurrentPageHudLabel()
        registerPageNumberHud(true)
    }
    

        })
    }
    
    func updateHudVerticalPosition(position: CGFloat) {
        let horizontalPosition = view.center.x - currentPageHud.frame.width / 2.0
        let verticalPosition = position - currentPageHud.frame.height - 10
        currentPageHud.frame = CGRect(x: horizontalPosition, y: verticalPosition, width: currentPageHud.frame.width, height: currentPageHud.frame.height)
    }
    
    open func cancelAutoBarHidden() {
