title: How to get value of multiple UISlider in a single @IBAction?
body: <p>I have 5 sliders that reference the same @IBAction func sliderDidSlide().  Each UISlider has a tag 0...4.  How do I get the value of each individual slider?  I wanted to use sender.tag to get which slider, then use .value to get its value.  I've tried sender.tag.value, but that doesn't work.</p>
  <p>Below is what I want to do but it doesn't work.  I've tried searching but couldn't find a solution.  I know I could just have multiple @IBActions, but if possible I'd like to save code and use tags to put them all in the same @IBAction.  Any help would be greatly appreciated.  Thank you.</p>
  <pre><code>@IBAction func sliderDidSlide(_ sender: UISlider) {
      
      let maxPrice = 10000
  
      switch sender.tag {
      case 0:
          let price = maxPrice * sender.tag.value // this doesn't work
          label1.text = &quot;\(price)&quot;
      case 1:
          // same idea as case 0
      case 2:
          &lt;#code#&gt;
      case 3:
          &lt;#code#&gt;
      case 4:
          &lt;#code#&gt;
      default:
          break
      }
  }
  </code></pre>