   
   var singleTap:UITapGestureRecognizer!
   var doubleTap:UITapGestureRecognizer!
-  
+
+  var showToolBar = false
+  var shareMessage = ""
   
   public required init(images: [UIImage], startIdx: Int, options: [String : Any]? = nil) {
     super.init(transitionStyle: .scroll, navigationOrientation: .horizontal, options: options)

  }
  
  //this just feels dirty but using till I figure out a better way
  public static func show(from: UIViewController, images:[UIImage], startIndex:Int, fullScreen:Bool, spacing: Int = 8) -> ImageViewer {
    let spacingStr = String(spacing)
    
    let imageViewer = ImageViewer(images: images,

      return nil
    }
  }
    
}

//MARK: UIPageViewControllerDelegate
extension ImageViewer: UIPageViewControllerDelegate {
    
  //This updates the currentIndex after the transition.
  public func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {
    
    guard completed else { return }
    let pageContentViewController = pageViewController.viewControllers![0] as! ImageViewController
    let index = pageContentViewController.index
        
    currentIndex = index
  }
}


