Skip to content
dotnet avatar

Maui Safe Area

Per-edge, per-control safe area API for .NET MAUI 10 that replaces legacy iOS-only UseSafeArea and IgnoreSafeArea.

CCM score
74 of 100
skills.sh installs
4.6K
GitHub stars
6.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the SafeAreaEdges property, the SafeAreaRegions flags enum, and per-edge control across Android, iOS, and Mac Catalyst
  • Includes control defaults for ContentPage, Layout, ScrollView, ContentView, and Border, plus XAML and C# usage patterns
  • Documents the .NET 10 breaking change where ContentPage defaults to None, with a SafeAreaEdges="Container" restore
  • Designed for upgrading .NET 9 MAUI apps and migrating from ios:Page.UseSafeArea or WindowSoftInputModeAdjust.Resize

Install

$ npx -y skills add dotnet/skills --skill maui-safe-area -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Safe Area & Edge-to-Edge Layout (.NET 10+)

.NET 10 introduces a brand-new, cross-platform safe area API that replaces the legacy iOS-only UseSafeArea and the layout-level IgnoreSafeArea properties. The new SafeAreaEdges property and SafeAreaRegions flags enum give you per-edge, per-control safe area management on Android, iOS, and Mac Catalyst from a single API surface.

This is new API surface in .NET 10. If the project targets .NET 9 or earlier, these APIs do not exist. Guide the developer to the legacy ios:Page.UseSafeArea and Layout.IgnoreSafeArea properties instead.

When to Use

  • Content overlaps status bar, notch, Dynamic Island, or home indicator after upgrading to .NET 10
  • Implementing edge-to-edge / immersive layouts (photo viewers, video players, maps)
  • Keyboard avoidance for chat or form UIs
  • Migrating from ios:Page.UseSafeArea, Layout.IgnoreSafeArea, or WindowSoftInputModeAdjust.Resize
  • Blazor Hybrid apps that need CSS env(safe-area-inset-*) coordination
  • Mixed layouts with an edge-to-edge header but a safe-area-respecting body

When Not to Use

Details

Repository
github.com/dotnet/skills
Categories
Mobile Apps, .NET & C#
First seen
Jun 3, 2026

Questions

What does the maui-safe-area skill help with?

The maui-safe-area skill gives .NET MAUI guidance for safe areas and edge-to-edge layouts on .NET 10 and later. It covers the SafeAreaEdges property, the SafeAreaRegions enum, keyboard avoidance, and platform behavior on Android, iOS, and Mac Catalyst.

Which .NET version does the maui-safe-area skill need?

The skill targets .NET 10 and later, since the SafeAreaEdges and SafeAreaRegions APIs do not exist in .NET 9 or earlier. For projects on .NET 9 or earlier, the skill points to the legacy iOS-specific properties instead.

How do I install the maui-safe-area skill?

Run npx -y skills add dotnet/skills --skill maui-safe-area -y in your project. Once installed, the agent can help you control content placement under the status bar, notch, home indicator, and on-screen keyboard.

How does maui-safe-area fit into the Mobile Apps category?

It sits in the Mobile Apps category alongside skills such as vercel-react-native-skills and animate-expo. Its focus is narrow: safe areas, edge-to-edge layout, and keyboard avoidance in .NET MAUI, not general layout or navigation.

More from dotnet/skills

All 95

Similar to Maui Safe Area

More Mobile Apps