Hi I'm creating a custom Button with SwiftUI.
I set the background color of the button as red.
I would like that when my button is disabled (with the disabled() method), the button's background color changes to gray.
What's the correct way to implement that? Is there a State property that tell that a View is disabled?
Thanks for more clarifications or an example.