File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
FirebaseAuth/Sources/Utilities Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ - (void)presentURL:(NSURL *)URL
91
91
_completion = [completion copy ];
92
92
dispatch_async (dispatch_get_main_queue (), ^() {
93
93
self->_UIDelegate = UIDelegate ?: [FIRAuthDefaultUIDelegate defaultUIDelegate ];
94
+ #if TARGET_OS_MACCATALYST
95
+ self->_webViewController = [[FIRAuthWebViewController alloc ] initWithURL: URL delegate: self ];
96
+ UINavigationController *navController =
97
+ [[UINavigationController alloc ] initWithRootViewController: self ->_webViewController];
98
+ [self ->_UIDelegate presentViewController: navController animated: YES completion: nil ];
99
+ #else
94
100
if ([SFSafariViewController class ]) {
95
101
self->_safariViewController = [[SFSafariViewController alloc ] initWithURL: URL];
96
102
self->_safariViewController .delegate = self;
@@ -104,6 +110,7 @@ - (void)presentURL:(NSURL *)URL
104
110
[[UINavigationController alloc ] initWithRootViewController: self ->_webViewController];
105
111
[self ->_UIDelegate presentViewController: navController animated: YES completion: nil ];
106
112
}
113
+ #endif
107
114
});
108
115
}
109
116
You can’t perform that action at this time.
0 commit comments