Skip to content

Commit 51e4692

Browse files
vincentjames501Vincent Pizzo
andauthored
Flip macCatalyst check for #704 (#705)
Co-authored-by: Vincent Pizzo <vincent.pizzo@singlewire.com>
1 parent 0af9991 commit 51e4692

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/RNAppAuth.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,10 @@ - (NSString*)getErrorMessage: (NSError*) error {
640640
- (id<OIDExternalUserAgent>)getExternalUserAgentWithPresentingViewController: (UIViewController *)presentingViewController
641641
{
642642
id<OIDExternalUserAgent> externalUserAgent;
643-
#if TARGET_OS_IOS
644-
externalUserAgent = [[OIDExternalUserAgentIOS alloc] initWithPresentingViewController:presentingViewController];
645-
#elif TARGET_OS_MACCATALYST
643+
#if TARGET_OS_MACCATALYST
646644
externalUserAgent = [[OIDExternalUserAgentCatalyst alloc] initWithPresentingViewController:presentingViewController];
645+
#elif TARGET_OS_IOS
646+
externalUserAgent = [[OIDExternalUserAgentIOS alloc] initWithPresentingViewController:presentingViewController];
647647
#elif TARGET_OS_OSX
648648
externalUserAgent = [[OIDExternalUserAgentMac alloc] init];
649649
#endif

0 commit comments

Comments
 (0)