Dispatch the page controller setting since it is unreliable. Issue #1756 & Issue #1808

This commit is contained in:
Maurice Parker 2020-02-25 18:06:02 -08:00
parent 5a5abb0b87
commit 9e3f061fcb
1 changed files with 4 additions and 1 deletions

View File

@ -111,7 +111,10 @@ class ArticleViewController: UIViewController {
controller.windowScrollY = state.windowScrollY
}
articleExtractorButton.buttonState = controller.articleExtractorButtonState
pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
DispatchQueue.main.async {
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
}
updateUI()
}