set uibutton image code example Example: uibutton image let btnImage = UIImage(named: "image") btnTwo.setImage(btnImage , for: .normal)