swiftui button change background color code example
Example 1: give background color swiftui
Color.blue.edgesIgnoringSafeArea(.all)
Example 2: button color swiftui
Button(action: {self.buttonTapped()}) {
Text("Button")
.padding(.all, 12)
.foregroundColor(.white)
.background(Color.red)
}