     }
 
     private func setupScrollView() {
-        scrollView = UIScrollView(frame: bounds)
+        scrollView.frame = bounds
         scrollView.clipsToBounds = false
         scrollView.isUserInteractionEnabled = true
         scrollView.backgroundColor = UIColor.clear


    // MARK: public - selectors

    @objc public func viewDoubleTapped(_ sender: UITapGestureRecognizer) {
        if scrollView.zoomScale <= 1.01 {
            let zoomPoint = sender.location(in: scrollView)


        }
    }

    public let imageView = UIImageView()
    public let scrollView = UIScrollView()
    public let activityIndicator = UIActivityIndicatorView(style: .whiteLarge)

    public lazy var zoomDoubleTapGestureRecogniser: UIGestureRecognizer = {
        let gesture = UITapGestureRecognizer(target: self, action:
            #selector(MediaViewerInteractiveImageView.viewDoubleTapped(_:)))
        gesture.numberOfTapsRequired = 2
        return gesture
    }()

    // MARK: private properties

