maui icon indicating copy to clipboard operation
maui copied to clipboard

Safe Area not working for iOS

Open s153625 opened this issue 1 year ago • 6 comments

Description

I have a problem with the safe area for iOS. I used the sample project to recreate the problem When I push the "click" me button, a modalPage with be pushed with Navigation.PushModalAsync. If I use ios:Page.UseSafeArea="False", it still has a safeArea and look like this: ffiZ4JLekX

However, if I set IgnoreSafeArea="True" on the stacklayout instead, it will work as I intend: imL71oZd94

Steps to Reproduce

  1. Create a file > New .Net Maui App
  2. Add Navigation.PushModalAsync(new MainPage()); in OnCounterClicked
  3. Add
    xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls" ios:Page.UseSafeArea="False" to MainPage.Xaml. Expected outcome: There is no safe area actual outcome: Safe area is still there

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

My workaround is to use IgnoreSafeArea="True", however it seems inconvenient to do as it has to be done for each grid/stacklayouts, also sometimes for the inner ones.

Relevant log output

No response

s153625 avatar Jan 05 '24 14:01 s153625

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

ghost avatar Jan 08 '24 15:01 ghost

I'm encountering the same problem on iOS.

ValonK avatar Jan 10 '24 09:01 ValonK

Same here, experience this in 8.10

asi-evin avatar Mar 21 '24 14:03 asi-evin

Same issue here on 8.0.14

phillippschmedt avatar Apr 02 '24 08:04 phillippschmedt

Same issue here on 8.0.14

bulubuloa avatar Apr 05 '24 08:04 bulubuloa

Same issue on 8.0.20

FlavioGoncalves-Cayas avatar Apr 16 '24 08:04 FlavioGoncalves-Cayas

same problem here

AdrianoBinhara avatar May 31 '24 16:05 AdrianoBinhara