From b1ddfb33ce7a0f98772ecd3cc4998d3fc0dc3e7d Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 11 Sep 2019 12:07:09 -0500 Subject: [PATCH] Correct assignment of timeline controller --- iOS/SceneCoordinator.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 1817ff098..8b8cfdbf2 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -431,10 +431,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { // MARK: API - func rowsInSection(_ section: Int) -> Int { - return shadowTable[section].count - } - func isExpanded(_ node: Node) -> Bool { return expandedNodes.contains(node) } @@ -1568,9 +1564,9 @@ private extension SceneCoordinator { // Push a new timeline on to the master navigation controller. For some reason recycling the timeline can freak // the system out and throw it into an infinite loop. if currentFeedIndexPath != nil { - let timelineController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self) - timelineController.coordinator = self - masterNavigationController.pushViewController(timelineController, animated: false) + masterTimelineViewController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self) + masterTimelineViewController!.coordinator = self + masterNavigationController.pushViewController(masterTimelineViewController!, animated: false) } // Pull the detail or no selection controller out of the sub split second position and move it to the root split controller