title: How to add fade to an animating image set in Swift 3?
body: <p>I have set up a couple of images that I need to automatically transition to the other and up till that point everything works great. Here is my code:</p>
  
  <pre><code>image1 = UIImage(named: "loginBg1.png")
  image2 = UIImage(named: "loginBg2.png")
  
  images = [image1, image2]
  animatedImage = UIImage.animatedImage(with: images, duration: 3)
  backgroundImageView.image = animatedImage
  </code></pre>
  
  <p>Now the thing is, I need them to fade when they transition. Basically I need to add a fade transition in between of the animation. </p>
  
  <p>Also, if you have the experience I want to add a ken burns effect to the images as in it should pan/zoom on each image before transition and after.</p>