-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
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
Updating View States in Action Blocks #24
Comments
I've found a similar issue (#15) that seems to describe the same problem I'm experiencing. My use case is identical to the one described there. |
I've just checked the demo application, and I noticed that the button there also remains inactive. This seems to confirm that the behavior is consistent across the library implementation. Given this observation, I was wondering if it would be possible to modify this behavior to allow for dynamic button state updates within the alert? This functionality would be incredibly helpful for user input validation and improving overall user experience. If such a change is feasible, I would be extremely grateful. It would significantly enhance the flexibility and usability of the Thank you for considering this request. I really appreciate your time and effort in maintaining and improving this library. |
Thank you very much for reporting this issue. In order to fix #22 I had to restructure how propagating the view state to the window works and while I tested that I refactored it after but I haven't tested it with the refactored version. I pushed a new version to Thank you with providing the examples, they help a lot and make fixing things easier. |
Should be fixed (again) in |
First of all, thank you for lowering the Swift version requirement to 5.9. This really helped, and I greatly appreciate your attention to users' needs.
Description
I've encountered an issue with updating view states in action blocks when using the custom alert from your library. There's a difference in behavior between the standard
alert
and thecustomAlert
provided by your library.Steps to Reproduce
alert
modifier.customAlert
modifier from your library.Expected Behavior
The "Remove" button should be enabled/disabled based on the password length, updating in real-time as the user types.
Actual Behavior
The "Remove" button's state doesn't update when using
customAlert
, while it works correctly with the standardalert
.Code Examples
Working example with standard
alert
:Not working example with
customAlert
:I also tried placing the buttons in the alert body, but it didn't help:
Questions
alert
?Any help or clarification on this issue would be greatly appreciated. Thank you for your time and assistance!
Environment
The text was updated successfully, but these errors were encountered: