Skip to content
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
@VasenevEA

Description

@VasenevEA

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions