Group Group Group Group Group Group Group Group Group

Chapter 3: UISlider initial position when running app

When I run the app, the slider’s initial position is always at 0, even though I have declared and initialized:

var current Value: Int = 50

in the view controller and in the sliderMoved() function in the VC.

The chapter says that the slider should be at the midway(50) position, but it always starts at 0.

I’m beginning to wonder if this is a bug in Xcode 12.5? Has anyone else run into this issue?

Chapter 3 has the following note:

Note: Even with the final version of iOS 14, the slider would not show the Value you set in the storyboard – at least for me. It would always default to showing the slider set to the minimum value. This appears to be a bug that Apple has not fixed yet. It is possible that this will be fixed by the time you read this, but if it is not, don’t worry – you haven’t done anything wrong. It’s just a bug on Apple’s part :]

Perhaps you missed that? Or is the issue you mention something different?