change button image swift code example
Example 1: swift change button text
button.setTitle("Button Title",for: .normal)
Example 2: swift add image to button
myButton.setImage(UIImage(named: "myImage"), forState: .normal)
button.setTitle("Button Title",for: .normal)
myButton.setImage(UIImage(named: "myImage"), forState: .normal)