title: How to move an UIimageView random on the screen when you click the image
body: <p>Can you help me please to move my image random on my View when I click it ?
  I need to use UIView Animations (is required) and when the UIImageView is reaching the random destination on the screen it should change the color/image from inside.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import UIKit
  import QuartzCore
  
  // ---- Is required to use UIView Animation ------
  
  class FirstViewController: UIViewController {
  
      @IBOutlet weak var imageView: UIImageView!
  
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          imageView.image = UIImage(named: "1.png") // the second image is named "2.png"
  
      }
  
      override func touchesBegan(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) {
        guard let touch = touches.first else { return }
  
          let touchLocation = touch.location(in: view)
          let leftCorner = CGPoint(x: touchLocation.x + 48, y: touchLocation.y + 48)
          imageView.center = leftCorner
      }
  
  
  }
  </code></pre>
  
  <p>Thanks in advance !</p>