I’m trying to read out the value of…

I’m trying to read out the value of a UISlider and put it into a UIProgressView. Not a problem, all I need is to divide my UISlider.value by 100 to get the correct output. So far so good.

However, for some reason this statement does not work. I don’t know why:

Doesn’t make sense. All I’m doing is dividing the self.mySlider.value by 100, giving me the value that I need. If I do it by passing this value into a variable which I divide by 100 it works perfectly fine:

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

Add your voice!