how to set imag frame in button ios swift code example Example: swift add image to button myButton.setImage(UIImage(named: "myImage"), forState: .normal)