mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Uses SceneCoordinator
Adds a `func` to SceneCoordinator to handle dismisses vis-a-vis using notifications.
This commit is contained in:
@@ -11,10 +11,6 @@ import UserNotifications
|
||||
import Account
|
||||
import Zip
|
||||
|
||||
public extension Notification.Name {
|
||||
static let DidLaunchFromExternalAction = Notification.Name("DidLaunchFromExternalAction")
|
||||
}
|
||||
|
||||
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
@@ -111,7 +107,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
DispatchQueue.main.async {
|
||||
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||
NotificationCenter.default.post(name: .DidLaunchFromExternalAction, object: nil)
|
||||
self.coordinator.dismissIfLaunchingFromExternalAction()
|
||||
}
|
||||
|
||||
let urlString = context.url.absoluteString
|
||||
|
||||
Reference in New Issue
Block a user