how to change background color of ui button swift
sender.backgroundColor = UIColor.green
set color for uibutton programmatically swift
button.setTitleColor(.red, for: .normal)
Source: stackoverflow.com
button color swiftui
Button(action: {self.buttonTapped()}) { Text("Button") .padding(.all, 12) .foregroundColor(.white) .background(Color.red) }