title: Creating a Slider that changes maximum value if released at maximum
body: <p>Probably a fairly basic error as I am fairly new to swift.  I have an app that creates a slider with min and max values.  These minimum and maximum values will only be a start point, so if someone sets the maximum value I would like to reset the maximum value to something greater.</p>
  
  <p>In xcode I have linked the action to touch up inside.</p>
  
  <pre><code>@IBAction func increaseslider(Sender: AnyObject){
  if slider.value = slider.maximumvalue{
  </code></pre>
  
  <p>I get errors at this point?  Is there a simpler way to do this?  Or I barking up the wrong tree?</p>