title: Animating a zoomScale on UIScrollView with Swift
body: <p>Relatively new to iOS apps, and swift, so I'm a little lost on how to proceed.</p>
  
  <p>Basically, I have a UIImageView, and i'm able to pinch to zoom/scroll, as my UIImageView is in a UIScrollView, but I'd like to add a double tap on the UIImage to zoom in as well.</p>
  
  <p>I'm able to zoom in (just set the zoomScale to 3.0 for now), but I'd like to have a smooth transition. I did see the zoom(to:, animated:) method, but I wasn't quite sure on how to zoom into the center of the view.</p>
  
  <p>Anyways, here's what I have thus far.</p>
  
  <p>I've created the tapGestureRecognizer, and assigned it to the UIImageView</p>
  
  <pre><code> let tapGesture =  UITapGestureRecognizer(target: self, action: #selector(tapImageViewGesture))        
      self.Image1.isUserInteractionEnabled = true
      self.Image1.addGestureRecognizer(tapGesture)
  </code></pre>
  
  <p>and below is the function to perform the zoom</p>
  
  <pre><code>func tapImageViewGesture(sender: UITapGestureRecognizer) {
      print("Touched")
      self.pinchZoomScroll1.zoomScale = 3.0
  
  }
  </code></pre>
  
  <p>Is there a simple way I can have some sort of a smooth animation of zooming in?, or should I go with using the zoom function instead, as it already supports animation?</p>
  
  <p>Thank you!!</p>