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
Alexey, sorry to trouble you again. I have a situation and have created a minimal repro here: https://github.com/jonreid/EnableDemo
I want a custom button to change its color depending on whether it's enabled or disabled via @Environment(\.isEnabled).
@Environment(\.isEnabled)
The code works when I run it.
The tests for disabled/enabled state work, from toggling a switch.
But test_customButtonDisabledColor fails, the test for the color of the disabled state. What trick am I missing?
test_customButtonDisabledColor
Thanks in advance… Jon
The text was updated successfully, but these errors were encountered:
Hey, that might be caused by #131
Sorry, something went wrong.
Ahhh, is this because it's not arbitrary @Environment we control, but there is hidden Apple code setting it that we can't trigger?
@Environment
No branches or pull requests
Alexey, sorry to trouble you again. I have a situation and have created a minimal repro here: https://github.com/jonreid/EnableDemo
I want a custom button to change its color depending on whether it's enabled or disabled via
@Environment(\.isEnabled)
.The code works when I run it.
The tests for disabled/enabled state work, from toggling a switch.
But
test_customButtonDisabledColor
fails, the test for the color of the disabled state. What trick am I missing?Thanks in advance… Jon
The text was updated successfully, but these errors were encountered: