-
Notifications
You must be signed in to change notification settings - Fork 379
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
Pre iOS 13 devices fail to deallocate BSImagePicker after it has been dismissed #320
Comments
Nice, sounds like it is related to #271. Have you tried any of the other presentation styles too and found that it is only .currentContext that works? |
In my implementation:
Based on above implementation, only |
iOS 14.7 same issue. I tried to fix by myself, but the only thing that I understood - it's the problem in method "presentImagePicker" cause after removing it and presenting just like " vc.present(imagePicker, animated: true)" memory leak is never happened. |
The issue seems to be caused by the
|
It doesn't work on my end, the memory consumption still increases every time when clicking into imagePicker. |
I notice that when BSImagePicker was dismissed, BSImagePicker does not deallocate even though the presentingViewController has bee deallocated (deinit). This only happens on devices running pre iOS 13. As a workaround, i changed the modalPresentationStyle of BSImagePicker to
.currentContext
Even though it manages to fix this issue, however i do not know if this is the right way of fixing this issue. Any thoughts on this?The text was updated successfully, but these errors were encountered: