For some reason my background is showing over my text label. I have the background as white and text as red, but for some reason the white background covers the text. I am referring to the "Tap me" button. In preview it shows correctly however in the simulator it shows with the issue.
VStack(alignment: .leading, spacing: 10) {
Text("Connection Pin:")
.font(.headline)
.foregroundColor(.gray)
Button {
print("Button tapped!")
} label: {
Text("Tap me")
.font(.title)
.foregroundColor(Color.red)
.bold()
}
.background(Color.white)
}


