title: How to change image in UIImageView with UISlider in Swift
body: <p>I'm trying to use the UISlider to change images in UIImageView
  So the idea is that if the slider value is 1, a certain image shows if it's 2, different image shows. etc.</p>
  
  <p>Can someone please help?</p>
  
  <p>Edit: This is the code I tried. I think it's supposed to be an If/Else statement but I'm not sure how to form the syntax. </p>
  
  <pre><code>@IBOutlet weak var scaleLabel: UILabel!
  @IBOutlet weak var scaleSlider: UISlider!
  @IBOutlet weak var scaleImage: UIImageView!
  
  
  
  @IBAction func valueChanged1(sender: AnyObject) {
  
      if scaleSlider.value == 1 {
          scaleImage.image = "Image.png"
      }
  
  }
  </code></pre>