File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,11 @@ + (BOOL)setupOAuthHandler:(UIApplication *)application
88
88
[authPlatform setURLOpener: ^void (NSURL *URL, DCTAuthPlatformCompletion completion) {
89
89
// [sharedManager setPendingAuthentication:YES];
90
90
if ([SFSafariViewController class ] != nil ) {
91
- safariViewController = [[SFSafariViewController alloc ] initWithURL: URL];
92
- UIViewController *viewController = application.keyWindow .rootViewController ;
93
- [viewController presentViewController: safariViewController animated: YES completion: nil ];
91
+ dispatch_async (dispatch_get_main_queue (), ^{
92
+ safariViewController = [[SFSafariViewController alloc ] initWithURL: URL];
93
+ UIViewController *viewController = application.keyWindow .rootViewController ;
94
+ [viewController presentViewController: safariViewController animated: YES completion: nil ];
95
+ });
94
96
} else {
95
97
[application openURL: URL];
96
98
}
You can’t perform that action at this time.
0 commit comments