I am trying to get my ui slider value while the animation progress but I am failing, I am using the above code to animate my ui slider:
UIView.animate(withDuration: 2, animations: {
self.ProgressLicht.setValue(Float(self.targetLightValue),
animated:true)
self.LabelLicht.text = String(describing: self.ProgressLicht.value) +
"%"} )
So when the animation start I see direct my ui slider final value I want to get the set the value while progressing.
Something like onProgressChanged in Android ?