title: Swift imageView animation doesn't work
body: <p>I have code to create animation:</p>
  
  <pre><code>var imageView: UIImageView!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      imageView = UIImageView(frame:CGRect(x: 10, y: 10, width: 10, height: 10))
      imageView.image = UIImage(named:"2.png")
  
      UIView.animate(withDuration: 5) {
  
          self.imageView = UIImageView(frame:CGRect(x: 10, y: 10, width: 500, height: 500))
  
          self.view.addSubview(self.imageView)
          self.view.layoutIfNeeded()
  
          }
      }
  </code></pre>
  
  <p>But animation doesn't work. And imageView not showing. </p>