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