Why does ios:Page.UseSafeArea="false" behave differently in .NET MAUI Native Embedding compared to a normal MAUI page?

Muthukumar Madasamy 0 Reputation points
2025-08-28T09:50:03.4933333+00:00

In the .NET MAUI Native Embedding sample, when using a NavigationPage and setting ios:Page.UseSafeArea="false", the CollectionView renders starting from the very top of the screen (under the navigation bar). However, in a normal .NET MAUI page with the same setting, the CollectionView still renders below the back button/navigation bar.

What is the root cause of this difference, and what is the recommended solution to make the behavior consistent when using native embedding?Screenshot 2025-08-28 122612

Developer technologies | .NET | .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Le (WICLOUD CORPORATION) 1,295 Reputation points Microsoft External Staff
    2025-08-29T02:51:04.4733333+00:00

    Hello,

    Thank you for reaching out.

    To answer your question, ios:Page.UseSafeArea="false" doesn't work in native embedding because it is designed for MAUI's NavigationPage renderer, which isn't present when embedding MAUI content as in native iOS apps.

    In native embedding, iOS treats your MAUI content as a regular UIView, so the native UIViewController's safe area constraints take precedence.

    I recommend you to look into iOS native API safeAreaLayoutGuide - Apple Developer when working with native embedding to achieve consistent layout behavior.

    I hope this clarifies the issue. If my answer solves your problem, feel free to interact with the system accordingly.

    Thank you.

    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.