title: How can you get the same button to display an image in a sequence
body: <p>I'm starting out with a really simple app.
  Whenever you press the main button I want the image to change in an order.</p>
  <p>In this example it's an apple. So each time you press your button it should change to the next image (which has a bite taken out of it). Im using an array but so far all I can do is assign the image to change randomly each tim its pressed rather than: Display image 1, then image 2 then image 3 etc.</p>
  <p>My code below:</p>
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view.
      }
  
    var  appleArray = [#imageLiteral(resourceName: &quot;apple1&quot;),#imageLiteral(resourceName: &quot;apple2&quot;),#imageLiteral(resourceName: &quot;apple3&quot;)]
      
      @IBOutlet weak var appleView: UIImageView!
  
      @IBAction func buttonView(_ sender: UIButton) {
          
      }
      
  }
  </code></pre>