Skip to content

Commit

Permalink
Flip macCatalyst check for FormidableLabs#704 (FormidableLabs#705)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Pizzo <vincent.pizzo@singlewire.com>
  • Loading branch information
vincentjames501 and Vincent Pizzo authored Feb 14, 2022
1 parent 0af9991 commit 51e4692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/RNAppAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,10 @@ - (NSString*)getErrorMessage: (NSError*) error {
- (id<OIDExternalUserAgent>)getExternalUserAgentWithPresentingViewController: (UIViewController *)presentingViewController
{
id<OIDExternalUserAgent> externalUserAgent;
#if TARGET_OS_IOS
externalUserAgent = [[OIDExternalUserAgentIOS alloc] initWithPresentingViewController:presentingViewController];
#elif TARGET_OS_MACCATALYST
#if TARGET_OS_MACCATALYST
externalUserAgent = [[OIDExternalUserAgentCatalyst alloc] initWithPresentingViewController:presentingViewController];
#elif TARGET_OS_IOS
externalUserAgent = [[OIDExternalUserAgentIOS alloc] initWithPresentingViewController:presentingViewController];
#elif TARGET_OS_OSX
externalUserAgent = [[OIDExternalUserAgentMac alloc] init];
#endif
Expand Down

0 comments on commit 51e4692

Please sign in to comment.