Skip to content

Commit

Permalink
Fix inverted 'IgnoreSafeArea' value (#2065)
Browse files Browse the repository at this point in the history
* Fix inverted 'IgnoreSafeArea' value

The IgnoreSafeArea property needs to be set to 'true' to have any effect. The default is 'false', in which case the safe area is respected.

* Update page-safe-area-layout.md

---------

Co-authored-by: David Britch <[email protected]>
  • Loading branch information
Yves-Be and davidbritch authored Feb 16, 2024
1 parent 6cdedbd commit 15a3cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ios/platform-specifics/page-safe-area-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ On<iOS>().SetUseSafeArea(false);
The `Page.On<iOS>` method specifies that this platform-specific will only run on iOS. The `Page.SetUseSafeArea` method, in the `Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific` namespace, controls whether the safe area layout guide is disabled.

> [!NOTE]
> The <xref:Microsoft.Maui.Controls.Layout> class defines a <xref:Microsoft.Maui.Controls.Layout.IgnoreSafeArea> property that ensures that content is positioned on an area of the screen that is safe for all iOS devices. This property can be set to `false` on any layout class, such as a <xref:Microsoft.Maui.Controls.Grid> or <Microsoft.Maui.Controls.StackLayout>, to perform the equivalent of this platform-specific.
> The <xref:Microsoft.Maui.Controls.Layout> class defines a <xref:Microsoft.Maui.Controls.Layout.IgnoreSafeArea> property that ensures that content is positioned on an area of the screen that is safe for all iOS devices. This property can be set to `true` on any layout class, such as a <xref:Microsoft.Maui.Controls.Grid> or <xref:Microsoft.Maui.Controls.StackLayout>, to perform the equivalent of this platform-specific.

0 comments on commit 15a3cdf

Please sign in to comment.