SyntaxFix
Write A Post
Hire A Developer
Questions
The boolean value for NO in Swift is false.
NO
false
button.isEnabled = false
should do it.
Here is the Swift documentation for UIControl's isEnabled property.
UIControl
isEnabled