For certain contexts, I'd like to still have my .sheet()
be full width even when it's at a small height. In iOS 26, the sheet is inset from the edges at small detents and expands to full width at larger detents. For example, I have a view where I have a .sheet()
that has a height of about 200pts and it contains a horizontally scrolling picker that extends past the bounds of the screen. I'd like the .sheet
to expand all the way to the edge when at these small detents, like it would previous to iOS 26. Is it possible to configure this? This change will break a number of existing designs :(
A new ViewModifier such as
enum PresentationWidth {
case dynamic, fixed
}
func presentationWidth(_ width: PresentationWidth) -> some View
would be very nice.