diff --git a/src/HotChocolateGraphQL.Mobile/HotChocolateGraphQL.Mobile.csproj b/src/HotChocolateGraphQL.Mobile/HotChocolateGraphQL.Mobile.csproj index bad77f2..668d409 100644 --- a/src/HotChocolateGraphQL.Mobile/HotChocolateGraphQL.Mobile.csproj +++ b/src/HotChocolateGraphQL.Mobile/HotChocolateGraphQL.Mobile.csproj @@ -50,10 +50,10 @@ - + - + diff --git a/src/HotChocolateGraphQL.Mobile/Pages/BasePage.cs b/src/HotChocolateGraphQL.Mobile/Pages/BasePage.cs index ed1013d..fa440fb 100644 --- a/src/HotChocolateGraphQL.Mobile/Pages/BasePage.cs +++ b/src/HotChocolateGraphQL.Mobile/Pages/BasePage.cs @@ -8,7 +8,7 @@ abstract partial class BasePage : BasePage where TViewModel : BaseV { protected BasePage(in TViewModel viewModel, in string? title = null, in bool shouldUseSafeArea = true) : base(viewModel, title) { - On().SetUseSafeArea(shouldUseSafeArea); + SafeAreaEdges = shouldUseSafeArea ? Microsoft.Maui.SafeAreaEdges.All : Microsoft.Maui.SafeAreaEdges.None; On().SetModalPresentationStyle(UIModalPresentationStyle.FormSheet); }