mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
handle launching to articles from a cold start
This commit is contained in:
parent
1bdfb3aafc
commit
3e69571d09
@ -23,7 +23,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
window!.tintColor = AppAssets.primaryAccentColor
|
||||
updateUserInterfaceStyle()
|
||||
window!.rootViewController = coordinator.start(for: window!.frame.size)
|
||||
|
||||
|
||||
coordinator.restoreWindowState(session.stateRestorationActivity)
|
||||
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(userDefaultsDidChange), name: UserDefaults.didChangeNotification, object: nil)
|
||||
@ -44,6 +44,10 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
coordinator.handle(userActivity)
|
||||
}
|
||||
|
||||
if let _ = connectionOptions.urlContexts.first {
|
||||
self.scene(scene, openURLContexts: connectionOptions.urlContexts)
|
||||
}
|
||||
|
||||
window!.makeKeyAndVisible()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user