change button text color swift code example
Example 1: swift change button text
button.setTitle("Button Title",for: .normal)
Example 2: button color swiftui
Button(action: {self.buttonTapped()}) {
Text("Button")
.padding(.all, 12)
.foregroundColor(.white)
.background(Color.red)
}