How to animate UISlider pen like in Apple Music app?

I have a custom image as a handle to my UISlider using the following code:

slider.setThumbImage(UIImage(named: "scrollerHandle")!, forState: .normal)

      

In the default music app in iOS, when you want to change the position of a song and you click on the music slider, the handle animates and becomes larger, and then when you release it, it shrinks again. How do I do this with UISlider?

I really appreciate the help of each body.

Slider image in music app

+3


source to share





All Articles