how to set button title programmatically in swift code example Example: change ui button swift button.setTitle("Button Title", for: .normal)