title: Changing UIScrollView pinch zoom speed
body: <p>I would like to decrease the zooming speed behavior of a <code>UIScrollView</code>.</p>
  
  <p>I've tried the solutions given in this two answers: <a href="https://stackoverflow.com/questions/22191582/how-to-reduce-velocity-of-pinch-zoom-uigesturerecognizer">Answer 1</a>, <a href="https://stackoverflow.com/questions/4157333/how-do-you-control-pinch-and-zoom-speed-for-a-uiscrollview/4157442#4157442">Answer 2</a>, but I'm not getting the expected results.</p>
  
  <p>This is my implementation of answer 2:</p>
  
  <pre><code>- (void)scrollViewDidZoom:(UIScrollView *)scrollView {
  
      if(scrollView.multipleTouchEnabled){
  
          CGFloat fSpeedZoom = 2;
          CGFloat fMaxZoomScale = scrollView.maximumZoomScale;
          CGFloat fMinZoomScale = scrollView.minimunZoomScale;
  
          scrollView.maximumZoomScale = scrollView.zoomScale + fSpeedZoom;
          scrollView.minimumZoomScale = scrollView.zoomScale - fSpeedZoom;
  
          if(scrollView.maximumZoomScale &gt; fMaxZoomScale){
              self.scrollView.maximumZoomScale = fMaxZoomScale;
          }
  
          if(scrollView.minimumZoomScale &lt; fMinZoomScale){     
              self.scrollView.minimumZoomScale = fMinZoomScale;
          }
      }
  }
  </code></pre>
  
  <p>If I keep the <code>fSppedZoom</code> values between 2 and 5 I get kind of an exponential behavior in which the further I try to zoom, the slower it zooms. I would like to get a linear behavior in which with a single parameter I could control the zooming speed.</p>