setting text of a button swift code example
Example 1: swift change button text
button.setTitle("Button Title",for: .normal)
Example 2: How to set back button text in Swift
let backButton = UIBarButtonItem()
backButton.title = "name"
self.navigationController?.navigationBar.topItem?.backBarButtonItem = backButton