   func setToolbarVisibilty(hidden: Bool) {
     if let nav = navigationController {
       nav.setNavigationBarHidden(hidden, animated: true)
-      nav.setToolbarHidden(hidden, animated: true)
+      if (showToolBar) {
+        nav.setToolbarHidden(hidden, animated: true)
+      }
     }
   }
   

    super.viewDidLoad()
    
    dataSource = self
    
    automaticallyAdjustsScrollViewInsets = false
    

}


//MARK: UIPageViewControllerDataSource
extension ImageViewer: UIPageViewControllerDataSource {
  
  public func pageViewController(_ pageViewController: UIPageViewController,
