summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.iOS/FormsMaps.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Maps.iOS/FormsMaps.cs')
-rw-r--r--Xamarin.Forms.Maps.iOS/FormsMaps.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Xamarin.Forms.Maps.iOS/FormsMaps.cs b/Xamarin.Forms.Maps.iOS/FormsMaps.cs
index ca8dca6..19c0701 100644
--- a/Xamarin.Forms.Maps.iOS/FormsMaps.cs
+++ b/Xamarin.Forms.Maps.iOS/FormsMaps.cs
@@ -7,6 +7,7 @@ namespace Xamarin
{
static bool s_isInitialized;
static bool? s_isiOs8OrNewer;
+ static bool? s_isiOs10OrNewer;
internal static bool IsiOs8OrNewer
{
@@ -18,6 +19,16 @@ namespace Xamarin
}
}
+ internal static bool IsiOs10OrNewer
+ {
+ get
+ {
+ if (!s_isiOs10OrNewer.HasValue)
+ s_isiOs10OrNewer = UIDevice.CurrentDevice.CheckSystemVersion(10, 0);
+ return s_isiOs10OrNewer.Value;
+ }
+ }
+
public static void Init()
{
if (s_isInitialized)