Replies: 3 comments 1 reply
-
Hi @nmalevich, did you mean to file this issue again? |
Beta Was this translation helpful? Give feedback.
-
I had made a mistake in previous issues and you found it |
Beta Was this translation helpful? Give feedback.
-
This is the problem: case .view(.testIncorrect):
state.alert = .init {
.init("HELLO")
} You are showing an alert without any buttons. Our I am going to again convert this to a discussion because this is not an issue with the library. In the future I think you can open discussions for questions like this instead of filing issues. |
Beta Was this translation helpful? Give feedback.
-
Description
I use AlertState, @ Presents and present method of UIViewController for showing alerts
If AlertState has ButtonState with action, everything is right. But if AlertState doesn't have ButtonState or has ButtonState with only TextState(without action), after dismissing state of alert doesn't become nil
So I don't have any problems with first show, but after first dismiss property in my state for alerts isn't nil, it is still previous value. So when I try to show next time, it will be nothing, because state isn't change
Checklist
main
branch of this package.Expected behavior
State of alert after dismissing is nil
Actual behavior
State of alert after dismissing isn't nil
Reproducing project
UIKitAlertDismissButtonBugExample.zip
The Composable Architecture version information
1.15.0
Destination operating system
iOS 17.6.1
Xcode version information
15.4
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions