Please add this line of code inside your view controller’s viewDidLoad()
method in order to update the currentValue
variable’s value to the slider’s one:
currentValue = lroundf(slider.value)
Please also ask any other questions regarding this video tutorial in its corresponding topic thread over here:
Thank you! :]