-
Notifications
You must be signed in to change notification settings - Fork 250
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
App crash on completion block to unowned self #120
Comments
Just an FYI I made the changes to weak self and everything working as expected. |
I'm hitting the same issue in my own app |
I am still getting this issue. It has not been fixed. |
Same issue here |
I just merged a PR that fixes this #121 and I'll publish a new version with this fix |
I am using the last version M13Checkbox (3.4.0) and is happening the same issue.
on line 145: |
Hey thanks for the awesome library!
I have uncovered an issue though in my app where I require to reload a view (which contains a few checkbox) in quick succession. My app is crashing at line 127 in the M13CheckboxStrokeController.swift:
Should self not be weak with null checks on self? If you agree I could submit a PR for the fix ASAP. I'd say it would be safer to update the three completion blocks in this class from unowned to weak so handle the checkbox being created and destroyed quickly.
Thanks,
Stephen
The text was updated successfully, but these errors were encountered: