Skip to content

How can we change the colour of an Alert button? #87

Answered by mbrandonw
Muhammed9991 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Muhammed9991, vanilla SwiftUI does not support customizing the color of alert buttons, and so there is nothing we can do. The best you can do is give the button a role: .destructive. That will make it red.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Muhammed9991
Comment options

@tgrapperon
Comment options

Answer selected by Muhammed9991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants