RangeSeekSlider icon indicating copy to clipboard operation
RangeSeekSlider copied to clipboard

How to set listener for value change?

Open HamedGh opened this issue 7 years ago • 5 comments

HamedGh avatar Sep 11 '17 10:09 HamedGh

I found RangeSeekSliderDelegate in your code! please mention it in your GitHub help page

HamedGh avatar Sep 11 '17 12:09 HamedGh

Yes, the method is : func rangeSeekSlider(_ slider: RangeSeekSlider, didChange minValue: CGFloat, maxValue: CGFloat) { //code }

agueroveraalvaro avatar Dec 31 '18 16:12 agueroveraalvaro

Can you explain how to use this? I've implemented the RangeSeekSliderDelegate protocol, but it still appears that the value changed event is not firing and triggering the associated IBAction.

xaepstudio avatar Oct 12 '19 20:10 xaepstudio

Basic Implementation

import RangeSeekSlider
class ViewController: UIViewController, RangeSeekSliderDelegate {
     @IBOutlet var controlPrecio: RangeSeekSlider!
      override func viewDidLoad() {
        super.viewDidLoad()
        controlPrecio.delegate = self
     }

      func rangeSeekSlider(_ slider: RangeSeekSlider, didChange minValue: CGFloat, maxValue: CGFloat
     {
        print("Slider changed")
     }
}

HugoFortis avatar Nov 15 '19 02:11 HugoFortis

Thank you.

xaepstudio avatar Jan 01 '20 08:01 xaepstudio