LavaUI docs GitHub

struct OverlayStyle

Swift

struct OverlayStyle

Styling for the floating surface an overlay draws on.

Sources/LavaUI/Overlay.swift:405

Constructors

init(background: Color? = nil, border: Color? = nil, cornerRadius: Float? = nil, padding: Float = 4, minWidth: Float = 0, backdropBlurRadius: Float? = nil, scrim: Color? = nil)

Creates a style. Colours and radius left nil come from the current theme.

Sources/LavaUI/Overlay.swift:422

Properties

var backdropBlurRadius: Float?

Blur applied to everything behind the complete resolved popup frame.

Sources/LavaUI/Overlay.swift:419

var background: Color

Fill of the panel.

Sources/LavaUI/Overlay.swift:409

var border: Color?

nil draws no outline.

Sources/LavaUI/Overlay.swift:411

var cornerRadius: Float

Corner radius of the panel, in points.

Sources/LavaUI/Overlay.swift:413

var minWidth: Float

Narrowest the panel is drawn, in points.

Sources/LavaUI/Overlay.swift:417

var padding: Float

Space between the panel's edge and the content, in points.

Sources/LavaUI/Overlay.swift:415

var scrim: Color?

Optional full-viewport tint behind the panel, for modal separation.

Sources/LavaUI/Overlay.swift:407