swift add image to button

Swift
myButton.setImage(UIImage(named: "myImage"), forState: .normal)
Source

Also in Swift: