in swift I can't pass the value that is passed by pressing the button and I have to print it. I use an if and it always prints the first value.
if zeroPctButton.titleLabel!.text! == "0%" {
print("0.0")
} else if tenPctButton.titleLabel!.text! == "10%" {
print("0.1")
}else {
print("0.2")
}