You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2024. It is now read-only.
switch (UIDevice.CurrentDevice.UserInterfaceIdiom)
{
case UIUserInterfaceIdiom.Pad:
return DeviceIdiom.Tablet;
case UIUserInterfaceIdiom.Phone:
return DeviceIdiom.Phone;
case UIUserInterfaceIdiom.TV:
return DeviceIdiom.TV;
case UIUserInterfaceIdiom.CarPlay:
case UIUserInterfaceIdiom.Unspecified:
default:
return DeviceIdiom.Unknown;
}
Add
case UIUserInterfaceIdiom.Mac:
return DeviceIdiom.Desktop;
If additional helper routines are needed, these should assist the dev.
`//A Boolean value that indicates whether the process is an iPhone or iPad app running on a Mac.
(BOOL) isIosAppOnMac {
if (@available(iOS 14.0, *)) {
NSProcessInfo *const processInfo = [[NSProcessInfo alloc] init];
return processInfo.iOSAppOnMac;
} else {
return false;
}
}
//A Boolean value that indicates whether the process originated as an iOS app and runs on macOS.
//This is for if specifically making the app use AppKit APIs
//https://developer.apple.com/documentation/uikit/mac_catalyst
Description
Essentials doesn't properly detect apps on the MacOS, mistaking them for Tablets
Steps to Reproduce
Expected Behavior
Should report Desktop
Actual Behavior
Reports Tablet
The text was updated successfully, but these errors were encountered: