I want the progress bar to increase when a "next button is pressed" as further in my code i have if, else statements saying,
@IBAction func nextButton(_ sender: UIButton) {
if progressBar.progress == Float(0.25) {
labelText.text = "first label"
}
else if progressBarCY.progress == Float(0.50) {
labelText.text = "second label"
}
}