Skip to content

Put Popover API in 10+ moniker #2964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/ios/platform-specifics/page-presentation-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,27 @@ public class iOSModalFormSheetPageCode : ContentPage

The `Page.On<iOS>` method specifies that this platform-specific will only run on iOS. The `Page.SetModalPresentationStyle` method, in the `Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific` namespace, is used to set the modal presentation style on a <xref:Microsoft.Maui.Controls.Page> by specifying one of the following `UIModalPresentationStyle` enumeration values:

::: moniker range=">=net-maui-8.0 <=net-maui-9.0"

- `FullScreen`, which sets the modal presentation style to encompass the whole screen. By default, modal pages are displayed using this presentation style.
- `FormSheet`, which sets the modal presentation style to be centered on and smaller than the screen.
- `Automatic`, which sets the modal presentation style to the default chosen by the system. For most view controllers, `UIKit` maps this to `UIModalPresentationStyle.PageSheet`, but some system view controllers may map it to a different style.
- `OverFullScreen`, which sets the modal presentation style to cover the screen.
- `PageSheet`, which sets the modal presentation style to cover the underlying content.

::: moniker-end

::: moniker range=">=net-maui-10.0"

- `FullScreen`, which sets the modal presentation style to encompass the whole screen. By default, modal pages are displayed using this presentation style.
- `FormSheet`, which sets the modal presentation style to be centered on and smaller than the screen.
- `Automatic`, which sets the modal presentation style to the default chosen by the system. For most view controllers, `UIKit` maps this to `UIModalPresentationStyle.PageSheet`, but some system view controllers may map it to a different style.
- `OverFullScreen`, which sets the modal presentation style to cover the screen.
- `PageSheet`, which sets the modal presentation style to cover the underlying content.
- `Popover`, which sets the modal presentation style to display content in a popover.

::: moniker-end

In addition, the `GetModalPresentationStyle` method can be used to retrieve the current value of the `UIModalPresentationStyle` enumeration that's applied to the <xref:Microsoft.Maui.Controls.Page>.

The result is that the modal presentation style on a <xref:Microsoft.Maui.Controls.Page> can be set:
Expand Down
Loading