     
     // MARK: - UIGestureRecognizer handlers
     @objc func viewPressed(_ recognizer: UILongPressGestureRecognizer) {
-        if (recognizer.state == UIGestureRecognizerState.began) {
+        if (recognizer.state == UIGestureRecognizer.State.began) {
             if let delegate = delegate {
                 delegate.galleryViewPressed(self)
             }

        scrollView.showsHorizontalScrollIndicator = false
        scrollView.minimumZoomScale = 1.0
        scrollView.maximumZoomScale = options.maximumZoomScale
        scrollView.decelerationRate = UIScrollViewDecelerationRateFast
        scrollView.backgroundColor = UIColor.clear
        isUserInteractionEnabled = options.enableZoom
        

    
    fileprivate func setupImageView() {
        imageView = UIImageView(frame: scrollFrame)
        imageView.contentMode = UIView.ContentMode.scaleToFill
        imageView.backgroundColor = UIColor.clear
        
        scrollView.addSubview(imageView)
