How do you change the text of the button and disable a button in iOS?
In Swift 3, you can simply change the title of a button by:
button.setTitle("Title", for: .normal)
and you disable the button by:
button.isEnabled = false
.normal is the same as UIControlState.normal because the type is inferred.
.normal
UIControlState.normal