Skip to content

Commit

Permalink
Remove !@available notation (#4105)
Browse files Browse the repository at this point in the history
  • Loading branch information
renkelvin authored and paulb777 committed Oct 17, 2019
1 parent 1d40a13 commit 92835a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Firebase/Auth/Source/Utilities/FIRAuthDefaultUIDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ - (void)dismissViewControllerAnimated:(BOOL)flag completion:(nullable void (^)(v
}

UIViewController *topViewController;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
if (@available(iOS 13.0, tvOS 13.0, *)) {
UIApplication *application = [applicationClass sharedApplication];
NSSet<UIScene *> * connectedScenes = application.connectedScenes;
Expand All @@ -89,6 +90,10 @@ - (void)dismissViewControllerAnimated:(BOOL)flag completion:(nullable void (^)(v
UIApplication *application = [applicationClass sharedApplication];
topViewController = application.keyWindow.rootViewController;
}
#else
UIApplication *application = [applicationClass sharedApplication];
topViewController = application.keyWindow.rootViewController;
#endif

while (true){
if (topViewController.presentedViewController) {
Expand Down

0 comments on commit 92835a4

Please sign in to comment.