I have two radio buttons, each with it's own `IBAction`. The first performs flawlessly. The second has an if-else condition and doesn't respond to the first tap but then responds to each tap thereafter. From looking at similar questions, I have sense that the first tap is just evaluating my function before performing the action but I am unable to figure out a way to get the button to respond on the first tap.

```
@IBAction func radioSchedule(_ sender: Any) {
         print(timePicker.isHidden)

        if timePicker.isHidden == true {

            timePicker.isHidden = false
            hideButton.isHidden = true
            timeView.isHidden = false
            itemTypeField.text = "Schedule"
            saveButton.isHidden = false

        } else {
            timePicker.isHidden = true
            timeView.isHidden = true
        }
        }

```