From 587e060df3bed2a8373fc7389a6462fdab6ff2c7 Mon Sep 17 00:00:00 2001 From: Joe Masilotti <joe@masilotti.com> Date: Tue, 17 Dec 2024 14:15:04 -0800 Subject: [PATCH 1/2] Document new (and old) modal_style options --- _source/reference/path_configuration.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_source/reference/path_configuration.md b/_source/reference/path_configuration.md index e922dc1..cc55d5b 100644 --- a/_source/reference/path_configuration.md +++ b/_source/reference/path_configuration.md @@ -128,3 +128,11 @@ You are free to add more properties as your app needs, but these are the ones th * `view_controller` — The identifier for a native `UIViewController` to navigate to. Conform your custom controller to `PathConfigurationIdentifiable` to it to this identifier. * Optional. * No explicit value options. No default value. +* `modal_style` — Specifies how a modal should be presented. Make sure to set `context` to `modal`, too. + * Optional. + * Possible values (defaults to `large`): + * `large` — The default system presentation style, [*automatic*](https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/automatic). + * `medium` — A half-sheet modal that can be expanded to full screen when dragged up, via [detents](https://developer.apple.com/documentation/uikit/uisheetpresentationcontroller/detents). + * [`full`](https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/fullscreen) — A full-screen modal, covering everything but the status bar. + * [`page_sheet`](https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/pagesheet) — On iPads, presents a modal that partially covers the underlying content. On iPhones, uses the default system presentation style. + * [`form_sheet`](https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/formsheet) — On iPads, presents a modal centered in the screen. On iPhones, uses the default system presentation style. From 0dd1474c1fdafad0e690928a2a065942eedf2eed Mon Sep 17 00:00:00 2001 From: Joe Masilotti <joe@masilotti.com> Date: Tue, 17 Dec 2024 14:16:40 -0800 Subject: [PATCH 2/2] Document modal_dismiss_gesture_enabled --- _source/reference/path_configuration.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_source/reference/path_configuration.md b/_source/reference/path_configuration.md index cc55d5b..58ab2e2 100644 --- a/_source/reference/path_configuration.md +++ b/_source/reference/path_configuration.md @@ -136,3 +136,6 @@ You are free to add more properties as your app needs, but these are the ones th * [`full`](https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/fullscreen) — A full-screen modal, covering everything but the status bar. * [`page_sheet`](https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/pagesheet) — On iPads, presents a modal that partially covers the underlying content. On iPhones, uses the default system presentation style. * [`form_sheet`](https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/formsheet) — On iPads, presents a modal centered in the screen. On iPhones, uses the default system presentation style. +* `modal_dismiss_gesture_enabled` — Whether or not swiping down (or tapping outside the content on iPads) on a modal will dismiss it. + * Optional. + * Possible values: `true`, `false`. Defaults to `true`.