get title of uibutton swift 4 code example Example: change the title of a button using Swift button.setTitle("Button Title", for: .normal)