I'm trying to find out the Iphone model from xamarin, because with the iphone X my application is superimposed with the top part of the screen (where the battery and signal appears) Try various meds like this plugin but only returns me "Iphone" does not tell me if it is 7.8 or X. And I need it so if it is the iPhone X put a greater upper margin
that's how I'm left with the Iphone X, the battery icon seems to be ahead of the menu
And so it appears on the Iphone 8 (which is fine)
I also checked the Use SAfe Area Layout Guide as I read in several places, but I do not change anything
and the code that I have to start the view is:
case Device.iOS:
{
BaseLayout = new RelativeLayout
{
Padding = new Thickness(0, 20, 0, 0),
Margin = new Thickness(0, 20, 0, 0),
HorizontalOptions = LayoutOptions.FillAndExpand,
VerticalOptions = LayoutOptions.FillAndExpand,
};
break;
}