presentationPlacement(.leading) sheet won't go half width on iPhone Duo when fully unfolded

My map app uses a persistent bottom sheet over a full-screen Map. On the iPhone Duo I want the sheet pinned to the leading side at about half the screen width.

When the device is half-open, .presentationPlacement(.leading) works and the sheet sits on the left . When it's fully unfolded, the sheet stretches much wider and ignores the placement .

The Flighty app manages to show a half-width sheet on the Duo even when it's fully unfolded, so it seems possible. Does anyone know how they do it? Is it a native sheet with some sizing API, or a custom overlay that just looks like a sheet?

Here's my sheet:

.sheet(isPresented: $showSheet) {
    sheetTabs
        .interactiveDismissDisabled()
        .presentationDetents([.fraction(0.35), .fraction(0.6), .large], selection: $sheetDetent)
        .presentationBackgroundInteraction(.enabled(upThrough: .fraction(0.6)))
        .presentationDragIndicator(.hidden)
        .presentationPlacementLeading()
}

And the helper that applies the placement:

@ViewBuilder
func presentationPlacementLeading() -> some View {
    if #available(iOS 27.0, *) {
        presentationPlacement(.leading)
    } else {
        self
    }
}

Questions:

  1. Is .presentationPlacement(.leading) supposed to apply when the Duo is fully unfolded, or does the system switch to a different sheet style there?
  2. Is there a supported way to keep a half-width leading sheet in that state, perhaps with presentationSizing, or is a custom overlay the only option?

iOS 27.1, Xcode 27.2, tested on the iPhone Duo simulator.

These forums are for discussions on building the swift compiler and the swift language itself - Apple framework questions should go to Apple developer forums (according to apples wishes). So would suggest you try there instead.

Alright, thank you!

1 Like