This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.
[Enhancement] Add isiOSAppOnMac property #1700
Open
Description
Summary
With the release of computers on Apple Silicone, we got another platform on which the Xamarin application can run.
We need a simple way to find out which device we are running on:
iOS device or iOS on Mac
API Changes
add to DevicePlatform:
public static DevicePlatform iOSOnMac { get; } = new DevicePlatform(nameof(iOSOnMac));
Intended Use Case
if (DeviceInfo.Platform == DevicePlatform.iOSOnMac)
{
//specific code
}