Skip to content
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

spinner disappears :- minimize the app, then comes back to foreground. #3

Closed
MiteshiOS opened this issue Jul 10, 2017 · 1 comment
Closed
Assignees

Comments

@MiteshiOS
Copy link

If i enter in background and then come back to foreground the spinner is automatically disappears.

steps :-

  • Run demo app
  • spinner is animating
  • press home button(Or keep app into background)
  • again come back to foreground
  • see Spinner is disappear.
@saru2020
Copy link
Owner

It is the default behavior followed by Apple for CAAnimations.
CAAnimations are stopped and removed when the app is backgrounded.

My Suggestion: Pause/Stop the animation when the app is backgrounded by either listening to the UIApplicationDidEnterBackgroundNotification or by handling the callback from the AppDelegate, and then play again when the app is foregrounded.

Have replicated/demonstrated the same in the sample app.

Hope it helps!

@saru2020 saru2020 self-assigned this Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants