Troubles with starting value using UISlider

Solution 1:

Yes, it's Xcode issues. You can find the issues list from this link. (https://fahimfarook.medium.com/xcode-12-and-ios-14-developer-bugs-and-issues-ada35920a104).

Create an outlet of both slider and set value through coding.

@IBOutlet weak var firstSlider: UISlider!
@IBOutlet weak var secondSlider: UISlider!

override func viewDidLoad() {
    super.viewDidLoad()
    
    firstSlider.minimumValue = 0
    firstSlider.maximumValue = 3
    firstSlider.value = 1.5
    
    secondSlider.minimumValue = 0
    secondSlider.maximumValue = 200
    secondSlider.value = 100
}