Closed JeromeTW closed 7 years ago
It is not possible currently. However, you can modify the code at NHRangeSlider.swift RangeSliderThumbLayer class, draw() method. It should work.
@thehung111 Thank you for your good job, and fast feedback. Yes, I really did what you said。 here's my snippet code, hope can help others who need.
let pointerImage = UIImage(named: INbtn_slider_pointer)?.cgImage
pointerLayer1.frame = rangeSliderView.rangeSlider!.lowerThumbLayer.bounds
pointerLayer1.contents = pointerImage
pointerLayer2.frame = rangeSliderView.rangeSlider!.upperThumbLayer.bounds
pointerLayer2.contents = pointerImage
rangeSliderView.rangeSlider!.lowerThumbLayer.addSublayer(pointerLayer1)
rangeSliderView.rangeSlider!.upperThumbLayer.addSublayer(pointerLayer2)
Is it possible to attack a image on thumb?