In SwiftUI the preferred way to style buttons is not — as shown here — by creating a view with a button in its body, but by providing a button style. you can check my repository to see how this is done, not only for buttons but toggles and textfields, too: https://gitlab.com/vikingosegundo/button-and-toggle-styles
In SwiftUI the preferred way to style buttons is not — as shown here — by creating a view with a button in its body, but by providing a button style. you can check my repository to see how this is done, not only for buttons but toggles and textfields, too: https://gitlab.com/vikingosegundo/button-and-toggle-styles