Jul 22, 2023
For buttons you're better off creating your own distinct ButtonStyles and using the buttonStyle modifier. That gives you more control over the style, including handling isPressed and isDisabled states.
You can also add your own extensions such that they're easier to autocomplete, just like Apple's.
.buttonStyle(.custom)