Open mehdok opened 5 years ago
I have implemented The MVVM+Coordinator in my app and now i want to preserve my app state. so i enabled saving app state via:
MVVM+Coordinator
preserve my app state
public func application(_ application: UIApplication, shouldSaveApplicationState coder: NSCoder) -> Bool { return true } public func application(_ application: UIApplication, shouldRestoreApplicationState coder: NSCoder) -> Bool { return true }
and some other codes to save and restore some variable in my ViewControllers. The problem is in MVVMC approach each coordinator result attached to previous ViewController and just creating view controllers for restoration is not sufficient.
ViewControllers
MVVMC
ViewController
So how can i implement this ?
I have implemented The
MVVM+Coordinator
in my app and now i want topreserve my app state
. so i enabled saving app state via:and some other codes to save and restore some variable in my
ViewControllers
. The problem is inMVVMC
approach each coordinator result attached to previousViewController
and just creating view controllers for restoration is not sufficient.So how can i implement this ?