Persist and restore container expanded state across application launches. Issue #1361

This commit is contained in:
Maurice Parker
2019-11-26 16:33:11 -06:00
parent 3d1f68a877
commit 4a9e79cd1e
8 changed files with 92 additions and 10 deletions

View File

@@ -23,6 +23,10 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
window!.tintColor = AppAssets.primaryAccentColor
window!.rootViewController = coordinator.start(for: window!.frame.size)
if let stateRestorationActivity = session.stateRestorationActivity {
coordinator.restoreWindowState(stateRestorationActivity)
}
if let shortcutItem = connectionOptions.shortcutItem {
window!.makeKeyAndVisible()
handleShortcutItem(shortcutItem)