Fixed timeline loading bug for portrait on the iPad

This commit is contained in:
Maurice Parker
2019-09-11 10:41:48 -05:00
parent d8b7d603bf
commit 856006a19f
2 changed files with 2 additions and 2 deletions

View File

@@ -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()