I want to set Custom buttonStyle modifier for button for light and dark mode. How to change buttonStyle Modifier based on light or dark mode? I want to set Cus
buttonStyle
You could define a named color in Assets.xcassets with a variation for the dark mode:
This works out of the box even in a ButtonStyle:
Color("ButtonBorder")