LavaUI docs GitHub

struct OverlayPlacementContext

Swift

struct OverlayPlacementContext

Geometry available when placing a detached overlay.

Sources/LavaUI/Overlay.swift:26

Properties

var anchor: OverlayFrame

The presenting view's frame, in window coordinates.

Sources/LavaUI/Overlay.swift:28

var idealSize: (width: Float, height: Float)

Natural size measured from the overlay's content before placement.

Sources/LavaUI/Overlay.swift:32

var viewport: OverlayFrame

The window's frame: the area the overlay must fit in.

Sources/LavaUI/Overlay.swift:30