-
Notifications
You must be signed in to change notification settings - Fork 187
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
Animation stops when returns to view using Navigation Bar #21
Comments
Same problem, swipe to back, too |
Having the same problem as well. Tried moving the code from viewDidLoad to viewWillAppear as that is called each time the view is reloaded but didn't help. |
anyone resolve the issue ? |
Bump. Also having this issue whenever the view disappears and reappears (like upon minimizing the app and opening again). |
I have some kind of workaround, but you may not like it. In my case I created a subclass from override func willMove(toWindow newWindow: UIWindow?) {
if newWindow == nil {
// We remove the view
self.subviews[0].removeFromSuperview()
} else {
// Add we re-added the Pastel View here
}
} I personally don't like to mess with this methods because this can lead to some errors, but in this way we can remove the unmoving view and add it again. Also, I didn't notice any significant memory leak, it spikes to 0.1MB when displayed and then it gets to 0 as soon as the PastelView is removed. |
tried viewdidAppear but didnt help.. |
"Test" and "Test1" is printed to the console, yet the animation refuses to resume |
If you press back to go back to the view with the animation (in the navigation controller stack) the animation doesn’t work.
The text was updated successfully, but these errors were encountered: