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

Commit

Permalink
Merge pull request #1731 from xamarin/jamesmontemagno-patch-2
Browse files Browse the repository at this point in the history
Fixes #1729 check for ios 13 on max frame rates
  • Loading branch information
Redth authored Jul 12, 2021
2 parents 1dc7f97 + 02ba4fa commit 5d80a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Essentials/DeviceDisplay/DeviceDisplay.ios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static DisplayInfo GetMainDisplayInfo()
density: scale,
orientation: CalculateOrientation(),
rotation: CalculateRotation(),
rate: UIScreen.MainScreen.MaximumFramesPerSecond);
rate: Platform.HasOSVersion(10, 3) ? UIScreen.MainScreen.MaximumFramesPerSecond : 0);
}

static void StartScreenMetricsListeners()
Expand Down

0 comments on commit 5d80a8a

Please sign in to comment.