Change Modality of Sheets in SwiftUI

Is it possible to use create a "nonmodal sheet" as described in the Human Interface Guidelines and as seen in apps like Maps using SwiftUI's .sheet and the new .presentationDetents modifier in iOS 16. By default, the content behind the sheet is not interactive.

Is there a built in modifier or modality style that can be applied to the sheet to allow for interactive content behind the sheet?

Replies

+1 to this.

I am trying to present a "drawer" (read: sheet with presentationDetents()) on top of another View. Both the parent and the drawer should be interactive simultaneously. Currently, it appears that any time a sheet is displayed, it s forced to be modal, as @aaronjedwards noted.

This means my really-crummy implementation of a drawer will have to live on, much to my dismay, even though the new presentationDetents() API seems made for my use-case.

I filed FB10636765 on this issue.