Closed ravilich86 closed 2 months ago
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. It appears that this issue was resolved in version 3.5.0 of the library.
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 customAlert
in various scenarios.
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 WindowKit
so fetching the latest packages should fix it, already but I will also release a new CustomAlert
version where the minimum required version includes the fix.
Thank you with providing the examples, they help a lot and make fixing things easier.
Should be fixed (again) in 3.8.1
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