Return to the Feeds scene when Add is executed using a keyboard shortcut key in another scene

This commit is contained in:
Maurice Parker 2019-09-06 10:57:37 -05:00
parent cc1c45095c
commit cdbaeda97b
1 changed files with 2 additions and 0 deletions

View File

@ -872,6 +872,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
} }
func showAdd(_ type: AddControllerType) { func showAdd(_ type: AddControllerType) {
selectFeed(nil)
let addViewController = UIStoryboard.add.instantiateInitialViewController() as! UINavigationController let addViewController = UIStoryboard.add.instantiateInitialViewController() as! UINavigationController
let containerController = addViewController.topViewController as! AddContainerViewController let containerController = addViewController.topViewController as! AddContainerViewController
containerController.initialControllerType = type containerController.initialControllerType = type