From e9d19daf6af76255c7c48c491f663562d1075563 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Tue, 8 Nov 2022 09:45:24 -0600 Subject: [PATCH] Ios Safe Area Tweaks --- qController.Standard/Classes/Cell/QCueListCell.cs | 10 +++++++++- qController.Standard/Pages/MenuPage.xaml | 6 ++++-- qController.Standard/Pages/MenuPage.xaml.cs | 3 +++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/qController.Standard/Classes/Cell/QCueListCell.cs b/qController.Standard/Classes/Cell/QCueListCell.cs index 424b42c..d0825b8 100644 --- a/qController.Standard/Classes/Cell/QCueListCell.cs +++ b/qController.Standard/Classes/Cell/QCueListCell.cs @@ -11,7 +11,15 @@ namespace qController.Cell public ObservableCollection items; public QCueListCell(QCueList qCueList) { - Margin = new Thickness(10); + switch (Device.RuntimePlatform) + { + case Device.iOS: + Margin = new Thickness(10, 30, 10, 10); + break; + case Device.Android: + Margin = new Thickness(10, 10, 10, 10); + break; + } Padding = new Thickness(10); items = new ObservableCollection(); diff --git a/qController.Standard/Pages/MenuPage.xaml b/qController.Standard/Pages/MenuPage.xaml index eb0969f..f68fbfc 100644 --- a/qController.Standard/Pages/MenuPage.xaml +++ b/qController.Standard/Pages/MenuPage.xaml @@ -1,5 +1,7 @@ - - + + diff --git a/qController.Standard/Pages/MenuPage.xaml.cs b/qController.Standard/Pages/MenuPage.xaml.cs index 3a8272c..699c26b 100644 --- a/qController.Standard/Pages/MenuPage.xaml.cs +++ b/qController.Standard/Pages/MenuPage.xaml.cs @@ -2,6 +2,8 @@ using Xamarin.Forms; using qController.QItems; using System; +using Xamarin.Forms.PlatformConfiguration; +using Xamarin.Forms.PlatformConfiguration.iOSSpecific; namespace qController { @@ -11,6 +13,7 @@ namespace qController public ObservableCollection items { get; } = new ObservableCollection(); public MenuPage() { + On().SetUseSafeArea(true); Title = "Menu"; InitializeComponent();