You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@huffmann the default dialog is also using a custom view controller internally. When you are using your own custom view controller and the completion handler is not triggered, this usually hints to a retain cycle related to your custom view controller. Instruments and/or memory graph debugger will help you to identify the problem.
Just for anyone's reference, to stop retain cycle simply add weak to your mainViewController reference in customViewController.
(e.g)
weak var homeVC : HomeViewController?
Report
Environment
Dependency management
What did you do?
create a custom view controller Popup view with dismiss callback
What did you expect to happen?
callback to be triggered on dismiss
What happened instead?
callback was not triggered on dismiss.
Also wanted to add, that I have done this exact procedure with a Normal Popup Dialogue, (e.g not custom) and the callback WAS triggered.
The text was updated successfully, but these errors were encountered: