Skip to content

Commit

Permalink
Avoid to use CornerCurve in iOS < 13 (#16101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Jul 13, 2023
1 parent cda3eb3 commit ed18303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/src/Platform/iOS/ContentView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public class ContentView : MauiView

public ContentView()
{
Layer.CornerCurve = CACornerCurve.Continuous;
if (OperatingSystem.IsIOSVersionAtLeast(13) || OperatingSystem.IsMacCatalystVersionAtLeast(13, 1))
Layer.CornerCurve = CACornerCurve.Continuous; // Available from iOS 13. More info: https://developer.apple.com/documentation/quartzcore/calayercornercurve/3152600-continuous
}

public override void LayoutSubviews()
Expand Down

0 comments on commit ed18303

Please sign in to comment.