LavaUI docs

struct Expand

Swift

struct Expand<Content> where Content : View

Disclosure control: chevron + title in a rounded outline, content below when open.

Matches the common “expand block” pattern (› header, bordered pill). Use it to gate continuous work — live charts, AnimationDriver widgets — so a long scroll is not paying redraws while the section is collapsed.

Sources/LavaUI/Expand.swift:8

Constructors

init(_ title: String, isExpanded: Binding<Bool>, style: ExpandStyle = ExpandStyle(), @ViewBuilder content: () -> Content)

Not documented.

Sources/LavaUI/Expand.swift:14

Properties

var body: some View { get }

Not documented.

Sources/LavaUI/Expand.swift:26

var content: Content

Not documented.

Sources/LavaUI/Expand.swift:12

var isExpanded: Binding<Bool>

Not documented.

Sources/LavaUI/Expand.swift:10

var style: ExpandStyle

Not documented.

Sources/LavaUI/Expand.swift:11

var title: String

Not documented.

Sources/LavaUI/Expand.swift:9