swift UIButton settext code example
Example 1: change the title of a button using Swift
button.setTitle("Button Title", for: .normal)
Example 2: change ui button swift
button.setTitle("Button Title", for: .normal)
button.setTitle("Button Title", for: .normal)
button.setTitle("Button Title", for: .normal)