HamzaGhazouani / HGCircularSlider

A custom reusable circular / progress slider control for iOS application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Continuous updates?

jbmaxwell opened this issue · comments

commented

I was looking for a continuous updates option (like the standard Cocoa slider). I only seem to be getting updates on release... Is there a setting/property I'm not finding?

Hi @jbmaxwell, if you look for continuous update just use .valueChanged of UIControlEvents.
If you look only for the end value, use .editingDidEnd you could find below an example:
circularSlider.addTarget(self, action: #selector(play), for: .editingDidEnd)
circularSlider.addTarget(self, action: #selector(play), for: .editingDidEnd)