I wanted to change the below blue buttons to another color other than the default.
default color
How can I change the color?
I tried changing them using foregroundStyle or accentColor but it did not work. I also changed the default AccentColor as below:
AccentColor
However, nothing seems to work.
Here is my code:
.actionSheet(isPresented: $showActionSheet) {
ActionSheet(
title: Text("Add new outfit"),
buttons: [
.default(Text("Add Manually").foregroundColor(.teal)) { isManualOutfit = true },
.default(Text("Recommend Me an Outfit").foregroundColor(.teal)) { isRecommendOutfit = true },
.cancel()
]
)
}
Thank you so much for your help!