Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Nov 15, 2022
1 parent 7e155f4 commit e5e92c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<DependentUpon>Issue14801.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Issue15368.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue15542.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue8606.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue15066.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue8804.xaml.cs">
Expand Down
10 changes: 10 additions & 0 deletions Xamarin.Forms.Platform.iOS/Forms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static class Forms
static bool? s_isiOS14OrNewer;
static bool? s_isiOS15OrNewer;
static bool? s_isiOS154OrNewer;
static bool? s_isiOS16OrNewer;
static bool? s_respondsTosetNeedsUpdateOfHomeIndicatorAutoHidden;

internal static bool IsiOS9OrNewer
Expand Down Expand Up @@ -125,6 +126,15 @@ internal static bool IsiOS154OrNewer
}
}

internal static bool IsiOS16OrNewer
{
get
{
if (!s_isiOS16OrNewer.HasValue)
s_isiOS16OrNewer = UIDevice.CurrentDevice.CheckSystemVersion(16, 0);
return s_isiOS16OrNewer.Value;
}
}

internal static bool RespondsToSetNeedsUpdateOfHomeIndicatorAutoHidden
{
Expand Down

0 comments on commit e5e92c7

Please sign in to comment.