title: How to update image View during UIView Animation
body: <p>I would like to change <code>image</code> in <code>imageView</code> during the animation. I have an <code>imageView</code> and my animation brings this <code>imageView</code> down. During this animation I need to load new photo into this <code>imageView</code> (after downloading from the Internet) but in any time when I try to do it this <code>imageView</code> <strong>comes back to the first position</strong>. How can I load new image without this issue?</p>
  
  <p>My code:</p>
  
  <p>load image function in <code>viewDidLoad</code></p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      viewModel.downloadImage({ [weak self] image in
          DispatchQueue.main.async {
              self?.userImageView.image = image
          }
      })
  }
  </code></pre>
  
  <p>Animation Method which i start in <code>viewDidAppear</code></p>
  
  <pre><code>override func viewDidAppear(_ animated: Bool) {
      super.viewDidAppear(animated)
  
      UIView.animate(withDuration: 5, delay: 0, options: [.curveEaseOut, .allowAnimatedContent, .allowUserInteraction], animations: { [unowned self] _ in
              self.userProfileImageView.center.y = 300
          }, completion: nil) 
  
  }
  </code></pre>