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
Restore state after application enters background. #38
Comments
"Test" and "Test1" are printed to the console yet the application refuses to resume the gradient |
Also have this issue |
@MrBenFTW
I'd just keep a reference to // View Controller property
private lazy var pastelView = PastelView(frame: view.bounds)
func restartPastel() {
pastelView = PastelView(frame: view.bounds)
pastelView.startAnimation()
}
@objc func willEnterForeground() {
restartPastel()
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wherever someone leaves my app and lets it go into the background, when they then later open the app, the gradient is no longer cycling.
Is there away to restore the state the gradient was in before being sent to background?
thank you.
I think I should be able to do it with
func applicationDidBecomeActive(_ application: UIApplication) {
but I don't know howThe text was updated successfully, but these errors were encountered: