title: Adding Image Transition Animation in Swift
body: <p>Below is the code that automatically transitions between different images, every 5 seconds. I want to add animations to the transitions i.e. fade, scroll from left, etc. How would I go about doing this in Swift? Thanks.</p>
  
  <pre><code>class ViewController: UIViewController {
  @IBOutlet weak var imageView: UIImageView!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      imageView.animationImages = [
          UIImage(named: "brooklyn-bridge.jpg")!,
          UIImage(named: "grand-central-terminal.jpg")!,
          UIImage(named: "new-york-city.jpg")!,
          UIImage(named: "one-world-trade-center.jpg")!,
          UIImage(named: "rain.jpg")!,
          UIImage(named: "wall-street.jpg")!]
  
      imageView.animationDuration = 25.0
      imageView.startAnimating()
  }
  </code></pre>