Move apply snapshot to the viewWillAppear callback to prevent table artifacts
This commit is contained in:
parent
fc0181cc2a
commit
ab38e755d3
|
@ -55,7 +55,6 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||||
refreshControl!.addTarget(self, action: #selector(refreshAccounts(_:)), for: .valueChanged)
|
refreshControl!.addTarget(self, action: #selector(refreshAccounts(_:)), for: .valueChanged)
|
||||||
|
|
||||||
updateUI()
|
updateUI()
|
||||||
applyChanges(animate: false)
|
|
||||||
becomeFirstResponder()
|
becomeFirstResponder()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -63,6 +62,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||||
override func viewWillAppear(_ animated: Bool) {
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
navigationController?.title = NSLocalizedString("Feeds", comment: "Feeds")
|
navigationController?.title = NSLocalizedString("Feeds", comment: "Feeds")
|
||||||
clearsSelectionOnViewWillAppear = coordinator.isRootSplitCollapsed
|
clearsSelectionOnViewWillAppear = coordinator.isRootSplitCollapsed
|
||||||
|
applyChanges(animate: false)
|
||||||
super.viewWillAppear(animated)
|
super.viewWillAppear(animated)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue