DropletWidgetBox
The box Droppy mounts a widget's content in (DroppyKit 1.23.0): the insets once, the full card, the mount's environment, no entrance transition and no clicks mid-spring.
@MainActor struct DropletWidgetBox<Content> where Content : View
The box Droppy mounts a widget's content in (DroppyKit 1.23.0): the insets once, the full card, the mount's environment, no entrance transition and no clicks mid-spring. Droppy wraps every ShelfWidgetCompositionProviding widget in it; a widget never builds one itself.
Available from DroppyKit 1.23.0.
Initializers
init(context:content:)
@MainActor init(context: ShelfWidgetContext, @ViewBuilder content: () -> Content)
The box for a classic context.
init(layout:contentInsets:content:)
@MainActor init(layout: ShelfWidgetLayout, contentInsets: EdgeInsets, @ViewBuilder content: () -> Content)
The box for a layout and the insets its clip needs.
Properties
body
@MainActor var body: some View { get }