     override func viewDidDisappear(animated: Bool) {
         super.viewDidDisappear(animated)
         
-        self.scrollView.zoomScale = minimumZoomScale
+        self.scrollView.zoomScale = self.scrollView.minimumZoomScale
     }
     
     override func viewDidLayoutSubviews() {

        scrollView.contentInset = UIEdgeInsetsZero
        scrollView.contentOffset = CGPointZero
        scrollView.contentSize = itemContentSize
        scrollView.minimumZoomScale = minimumZoomScale
        scrollView.maximumZoomScale = maximumZoomScale
        scrollView.addObserver(self, forKeyPath: "contentOffset", options: NSKeyValueObservingOptions.New, context: nil)
    }
    

            if let imageView = self?.imageView, _ = imageView.image, scrollView = self?.scrollView {
                
                imageView.bounds.size = aspectFitContentSize(forBoundingSize: boundingSize, contentSize: imageView.bounds.size)
                scrollView.zoomScale = scrollView.minimumZoomScale
            }
            }, completion: nil)
    }
