Skip to content

Commit

Permalink
Make sure to not call new APIs on old iOS
Browse files Browse the repository at this point in the history
Fixes #17892
  • Loading branch information
mattleibow committed Oct 9, 2023
1 parent 9491217 commit 56a24e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/src/Platform/iOS/ApplicationExtensions.cs
Expand Up @@ -129,6 +129,9 @@ public static NSUserActivity ToUserActivity(this IPersistedState? state, string

public static void UpdateUserInterfaceStyle(this IApplication application)
{
if (!OperatingSystem.IsIOSVersionAtLeast(13) && !OperatingSystem.IsMacCatalystVersionAtLeast(13, 1))
return;

if (application is null)
return;

Expand Down

0 comments on commit 56a24e9

Please sign in to comment.