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