title: Xcode Swift image zoom gesture
body: <p>Hope someone can help me. Im trying to make a zoom gesture, so when the image are presented the user can zoom the image with fingers.</p>
  
  <p>My code to present the image are:</p>
  
  <pre><code>// MARK: Show image full screen
  
  func imageTapped(img: AnyObject) {
  
      self.navigationController?.navigationBarHidden = true
  
      let imageView = productImage as UIImageView
  
      let newImageView = UIImageView(image: imageView.image)
      newImageView.frame = self.view.frame
      newImageView.backgroundColor = .blackColor()
      newImageView.contentMode = .ScaleToFill
      newImageView.userInteractionEnabled = true
  
      let tap = UITapGestureRecognizer(target: self, action: "dismissFullscreenImage:")
      newImageView.addGestureRecognizer(tap)
      self.view.addSubview(newImageView)
  }
  
  func dismissFullscreenImage(sender: UITapGestureRecognizer) {
      sender.view?.removeFromSuperview()
      self.navigationController?.navigationBarHidden = false
  }
  </code></pre>