 //MARK:
 extension ImageViewerViewController: UIGestureRecognizerDelegate {
     public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
-        if (gestureRecognizer is UIPanGestureRecognizer || gestureRecognizer is UIRotationGestureRecognizer) {
-            return true
-        } else {
-            return false
-        }
+        if #available(iOS 13, *) {
+            if (gestureRecognizer is UIPanGestureRecognizer || gestureRecognizer is UIRotationGestureRecognizer) {
+                return true
+            }
+        }
+        return false
     }
 }
 

        view.addSubview(blurredView)
        view.addSubview(scrollView)
        scrollView.addSubview(imageView)
        
        blurredView.edgesToSuperView()
        scrollView.edgesToSuperView()
        imageView.edgesToSuperView()
        imageView.setRelativeWidth(to: view)
        imageView.setRelativeHeight(to: view)
    }
    
    /// If horizontal image then get max zoom by height, else by width

                    if #available(iOS 13.0, *) {
                        self.imageView.transform = CGAffineTransform(translationX: 0, y: UIScreen.main.bounds.height)
                    } else {
                        self.imageView.layer.frame.origin = CGPoint(x: self.view.frame.origin.x, y: self.imageView.frame.size.height)
                    }
                }) { (isCompleted) in
                    if isCompleted {
