From e269e2352777318b17a1939889422194332230c8 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 27 Jul 2019 18:31:55 -0400 Subject: [PATCH] Fix main thread checker warning on login --- Tusker/Screens/Onboarding/OnboardingViewController.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Onboarding/OnboardingViewController.swift b/Tusker/Screens/Onboarding/OnboardingViewController.swift index b40d62a30c..1e6f612988 100644 --- a/Tusker/Screens/Onboarding/OnboardingViewController.swift +++ b/Tusker/Screens/Onboarding/OnboardingViewController.swift @@ -69,8 +69,10 @@ class OnboardingViewController: UIViewController { } } } - self.authenticationSession!.presentationContextProvider = self - self.authenticationSession!.start() + DispatchQueue.main.async { + self.authenticationSession!.presentationContextProvider = self + self.authenticationSession!.start() + } } }