swift set button text color code example
Example 1: swift change button text
button.setTitle("Button Title",for: .normal)
Example 2: set color for uibutton programmatically swift
button.setTitleColor(.red, for: .normal)
button.setTitle("Button Title",for: .normal)
button.setTitleColor(.red, for: .normal)