Fixed timeline loading bug for portrait on the iPad
This commit is contained in:
parent
d8b7d603bf
commit
856006a19f
|
@ -68,13 +68,13 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
|||
numberOfTextLines = AppDefaults.timelineNumberOfLines
|
||||
resetEstimatedRowHeight()
|
||||
|
||||
applyChanges(animate: false)
|
||||
resetUI()
|
||||
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
clearsSelectionOnViewWillAppear = coordinator.isRootSplitCollapsed
|
||||
applyChanges(animate: false)
|
||||
super.viewWillAppear(animated)
|
||||
}
|
||||
|
||||
|
@ -495,6 +495,7 @@ private extension MasterTimelineViewController {
|
|||
var snapshot = NSDiffableDataSourceSnapshot<Int, Article>()
|
||||
snapshot.appendSections([0])
|
||||
snapshot.appendItems(coordinator.articles, toSection: 0)
|
||||
print("********* article count: \(coordinator.articles.count)")
|
||||
|
||||
dataSource.apply(snapshot, animatingDifferences: animate) { [weak self] in
|
||||
self?.restoreSelectionIfNecessary()
|
||||
|
|
|
@ -1571,7 +1571,6 @@ private extension SceneCoordinator {
|
|||
let timelineController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self)
|
||||
timelineController.coordinator = self
|
||||
masterNavigationController.pushViewController(timelineController, animated: false)
|
||||
timelineController.restoreSelectionIfNecessary()
|
||||
}
|
||||
|
||||
// Pull the detail or no selection controller out of the sub split second position and move it to the root split controller
|
||||
|
|
Loading…
Reference in New Issue