ExpandedSurfaceBox

Host-aligned container for an ExpandedSurfaceProviding view.

@MainActor struct ExpandedSurfaceBox<Content> where Content : View

Propagates ShelfWidgetLayout derived from the ExpandedSurfaceContext (including any cutout-wrap bands) so ShelfWidgetHeader, ShelfWidgetScaffold, ShelfWidgetStageScaffold, and Droppy wash controls mask and clear the camera cutout identically to shelf widgets.

Available from DroppyKit 1.24.0; a droplet that uses it declares minAPI 1.24.0.

Initializers

init(context:usesAdaptiveForegrounds:foreground:content:)

@MainActor init(context: ExpandedSurfaceContext, usesAdaptiveForegrounds: Bool = false, foreground: Color? = nil, @ViewBuilder content: () -> Content)

Properties

body

@MainActor var body: some View { get }