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

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

        scrollView.showsHorizontalScrollIndicator = false
        scrollView.minimumZoomScale = 1.0
        scrollView.maximumZoomScale = options.maximumZoomScale
        scrollView.decelerationRate = UIScrollView.DecelerationRate.fast
        scrollView.backgroundColor = UIColor.clear
        isUserInteractionEnabled = options.enableZoom
        
