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:
@@ -75,7 +75,6 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(contentSizeCategoryDidChange), name: UIContentSizeCategory.didChangeNotification, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground(_:)), name: UIApplication.willEnterForegroundNotification, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(configureContextMenu(_:)), name: .ActiveExtensionPointsDidChange, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(didLaunchFromExternalAction), name: .DidLaunchFromExternalAction, object: nil)
|
||||
|
||||
refreshControl = UIRefreshControl()
|
||||
refreshControl!.addTarget(self, action: #selector(refreshAccounts(_:)), for: .valueChanged)
|
||||
@@ -688,13 +687,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
present(vc, animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
@objc func didLaunchFromExternalAction() {
|
||||
guard let presentedController = presentedViewController as? SFSafariViewController else {
|
||||
return
|
||||
}
|
||||
presentedController.dismiss(animated: true, completion: nil)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: UIContextMenuInteractionDelegate
|
||||
|
||||
Reference in New Issue
Block a user