From 27b1443def0f1f72da727a2c44ab6eb892c3976e Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 11 Mar 2020 18:17:09 -0600 Subject: [PATCH] Remove dispatch code that didn't seem to help and caused us to not be able to find the correct view controller when setting the article. Issue #1881 --- iOS/Article/ArticleViewController.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index ff5328dd3..d41b7f904 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -112,13 +112,10 @@ class ArticleViewController: UIViewController { } articleExtractorButton.buttonState = controller.articleExtractorButtonState - DispatchQueue.main.async { - self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil) - if AppDefaults.articleFullscreenEnabled { - controller.hideBars() - } + self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil) + if AppDefaults.articleFullscreenEnabled { + controller.hideBars() } - updateUI() }