Unable to occupy safe area in IOS

RaviKiran P 0 Reputation points
2024-09-19T18:15:59.3633333+00:00

I have added below XAML to my content page still, Content page is not occupying the notch area in IOS

xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"              ios:Page.UseSafeArea="True"


Screenshot 2024-09-19 at 11.53.46 PM.png

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,475 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 31,161 Reputation points Microsoft Vendor
    2024-09-20T02:36:53.34+00:00

    Hello,

    It's the default behavior, the screenshot you provided shows the correct safe area because you set ios:Page.UseSafeArea="True".

    Please read the Apple's doc to see what is considered as the safe area- Positioning content relative to the safe area | Apple Developer Documentation

    For more details, you can refer to Enable the safe area layout guide on iOS - .NET MAUI | Microsoft Learn

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.