set color for uibutton programmatically swift

Swift
button.setTitleColor(.red, for: .normal)
Source

Also in Swift: