summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Device.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/Device.cs')
-rw-r--r--Xamarin.Forms.Core/Device.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/Device.cs b/Xamarin.Forms.Core/Device.cs
index f18251d..ba83ca0 100644
--- a/Xamarin.Forms.Core/Device.cs
+++ b/Xamarin.Forms.Core/Device.cs
@@ -12,6 +12,7 @@ namespace Xamarin.Forms
public const string Android = "Android";
public const string WinPhone = "WinPhone";
public const string Windows = "Windows";
+ public const string macOS = "macOS";
internal static DeviceInfo info;
@@ -21,8 +22,10 @@ namespace Xamarin.Forms
[Obsolete("Use RuntimePlatform instead.")]
#pragma warning disable 0618
- public static TargetPlatform OS {
- get {
+ public static TargetPlatform OS
+ {
+ get
+ {
TargetPlatform platform;
if (Enum.TryParse(RuntimePlatform, out platform))
return platform;