We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug ButtonStyle configuration.isPressed not updated properly
To Reproduce The demo code is enough to reproduce the bug
Button("Pressed Button Style") { print("tapped") } .buttonStyle( PressedButtonStyle(pressedColor: Color.red) )
struct PressedButtonStyle: ButtonStyle { let pressedColor: Color func makeBody(configuration: Configuration) -> some View { configuration.label .foregroundColor(configuration.isPressed ? pressedColor : .blue) .padding(15) } }
Steps to reproduce the behavior:
.isPressed
true
Expected behavior .isPressed set to false and color change
false
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
carson-katri
Successfully merging a pull request may close this issue.
Describe the bug
ButtonStyle configuration.isPressed not updated properly
To Reproduce
The demo code is enough to reproduce the bug
Steps to reproduce the behavior:
.isPressed
is still set totrue
Expected behavior
.isPressed
set tofalse
and color changeDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: