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
Crash on deallocate #11
Comments
Hi @alex566 |
In the meantime checkout latest commit for a possible fix. |
Does this happen even with the latest commit? |
Yes |
Can you provide a sample to reproduce the issue? |
https://github.com/AmauryVela/test_virals I'm new with git so i dont know if theres another way to show you an example. Cheers |
The way is fine, the sample is not. It would be nice to have a sample that compiles without having to hunt down dependencies... Most of all it would be best to have the steps to reproduce the crash. After getting the sample to compile I tried to tap around (the foreign language doesn't help) but got no crash (beside the one due to the missing segue). |
Yes, latest commit fixes the issue, when I write this code manually. Could you please include this commit in pod to apply changes? |
Great. I've pushed the new pod, version |
AMViralSwitch adds observer for "on" keypath in "didMoveToSuperview" delegate method, which is called twice (on adding to superview and on removing from one), but view removes observer one time in dealloc method.
The text was updated successfully, but these errors were encountered: