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
Issue Description:
I've noticed that the SwiftAlertView object is not getting deallocated properly due to strong reference cycles. Specifically, the onButtonClicked, onActionButtonClicked, and onTextChanged closure properties are causing a memory leak by retaining self strongly.
Suggested Fix:
To break the strong reference cycle, I've used [unowned self] in the closure. Here's how I've modified the code to fix the memory leak issue:
Issue Description:
I've noticed that the SwiftAlertView object is not getting deallocated properly due to strong reference cycles. Specifically, the onButtonClicked, onActionButtonClicked, and onTextChanged closure properties are causing a memory leak by retaining self strongly.
Suggested Fix:
To break the strong reference cycle, I've used [unowned self] in the closure. Here's how I've modified the code to fix the memory leak issue:
I hope this helps to resolve the issue. Looking forward to your feedback.
The text was updated successfully, but these errors were encountered: