title: UISlider set value
body: <p>I have a UISlider and I want to set its value from 1 to 10. The code I use is.</p>
  
  <pre><code>let slider = UISlider()
  slider.value = 1.0
  // This works I know that
  slider.value = 10.0
  </code></pre>
  
  <p>What I want to do is animate the UISlider so that it takes 0.5s to change. I don't want it to be as jumpy more smooth.   </p>
  
  <p>My idea so far is.</p>
  
  <pre><code>let slider = UISlider()
  slider.value = 1.0
  // This works I know that
  UIView.animateWithDuration(0.5, delay: 0.0, options: .CurveEaseInOut, animation: { slider.value = 10.0 } completion: nil)
  </code></pre>
  
  <p>I am looking for the solution in Swift.</p>