I want to the change the background color for stepper but this code change the background color for text too. I want to change only the stepper's background color. please guide me to solve this issue.
HStack {
Text("Count : ")
.font(.body)
.foregroundColor(Color(.blue))
Spacer()
Stepper(value: self.$MyViewModel.MyModel.minCounts, in: 5...60) {
Text("\(String(format: "%.0f",MyViewModel.MyModel.minCounts)) Mins")
.font(.body)
.foregroundColor(Color("font"))
}
.background(Color("Color1"))
}