title: accessibilityIncrement and accessibilityDecrement not called with a slider
body: <p>I'm trying to add accessibility to a simple <code>UISlider</code>. I read the <a href="https://developer.apple.com/documentation/uikit/uiaccessibility/uiaccessibilitytraits/1620177-adjustable" rel="nofollow noreferrer">Apples adjustable document</a> and saw that I need to implement two functions from the <code>UIAccessibilityAction protocol</code>; <code>accessibilityIncrement()</code> and <code>accessibilityDecrement()</code>.</p>
  <p>The problem I'm having is that even if I set the slider to be an accessibility element in <code>viewDidLoad</code> and setting <code>slider.accessibilityTraits = .adjustable</code>, the two override functions aren't called even if I change the values.</p>
  <p>I also tried to set <code>slider.accessibilityLabel = &quot;test&quot;</code>, but it's still not reading the label. Only how far the slider has come. For instance &quot;80%&quot;.</p>
  <p>Any idea on how I can make this work? I also read these two posts on stackOverflow, but none of them worked for me. <a href="https://stackoverflow.com/questions/37462982/accessibilityincrement-decrement-not-called">accessibilityIncrement / Decrement not called</a> and <a href="https://stackoverflow.com/questions/48585236/accessibility-accessibilitydecrement-not-getting-called">Accessibility accessibilityDecrement() not getting called</a></p>
  <p>I can also mention that I also tried setting breakpoints at the <code>accessibilityIncrement()</code> and <code>accessibilityDecrement()</code>, but nothing happened.</p>
  <br>
  <h3>My code</h3>
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      slider.isAccessibilityElement = true
      slider.accessibilityLabel = &quot;test&quot;
      slider.accessibilityTraits = .adjustable
      
  }
  
  
  override func accessibilityIncrement() {
      slider.accessibilityValue = textField.text!
  }
  
  override func accessibilityDecrement() {
      slider.accessibilityValue = textField.text!
  }
  
  
  @IBAction func sliderValueChanged(_ sender: UISlider) {
      guard let unit = question?.unit else { return }
      
      let currentValue = Int(sender.value + 0.5)
      textField.text = &quot;\(currentValue) \(unit)&quot;
      
      
      slider.accessibilityLabel = textField.text!
  }
  </code></pre>