Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Fix iOS crash/freeze when navigating away #60

Closed
wants to merge 1 commit into from

Conversation

mrousavy
Copy link
Contributor

@mrousavy mrousavy commented Dec 20, 2021

willMoveToWindow:nil gets called when the view gets hidden, e.g. when navigating away. The problem here is, that you can navigate back and the view should be active again, but we completely destroy a reference to it in this method.

Instead, we should only destroy the reference in dealloc.

To be a bit more efficient on the CPU we can also think about pausing redraws if willMoveToWindow gets called with a nil window and a nil superview, but deleting the reference just causes the app to crash/the view to freeze and no longer update.

@chrfalch
Copy link
Contributor

Fixed in #72 . #70 Has a fix for Android.

@chrfalch
Copy link
Contributor

chrfalch commented Jan 3, 2022

Closing with #70 and #72

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants