I'm trying to change the text color and the background color of the ActionSheet in SwiftUI.
This is the code of my actionSheet:
.actionSheet(isPresented: $viewModel.isCustomItemSelected) {
ActionSheet(
title: Text("Add Item"),
message: Text("Which item would you like to add?"),
buttons: [
.default(Text("Todo")),
.default(Text("Event")),
.cancel(Text("Cancel"))
])
}
And whatever I try, like tint color, foreground color etc.. It does not change the color. How is the correct way to change it? I imagine that SwiftUi does not have any API to style it, but I'm sure that should be any workaround.