Skip to content

Commit

Permalink
fix(ios): use compile guard for determining if macos
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Dec 15, 2020
1 parent 1d5b8f2 commit df14d0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/TiUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ + (BOOL)is2xRetina

+ (BOOL)isMacOS
{
#if TARGET_OS_MACCATALYST
return YES;
#else
// TODO: Just return NO? Use NSProcessInfo.processInfo.isMacCatalystApp or iOSAppOnMac?
return [UIDevice.currentDevice.systemName isEqualToString:@"Mac OS X"];
#endif
}

+ (BOOL)isRetinaHDDisplay
Expand Down

0 comments on commit df14d0a

Please sign in to comment.