LavaUI docs GitHub

struct OptionalView

Swift

struct OptionalView<Content> where Content : View

Non-exhaustive if — fragment (no flex wrapper).

Sources/LavaUI/OptionalView.swift:2

Constructors

init(_ content: Content?)

Wraps an optional view. Produced by ViewBuilder.buildOptional(_:).

Sources/LavaUI/OptionalView.swift:7

Properties

var content: Content?

The content when the condition held, or nil to show nothing.

Sources/LavaUI/OptionalView.swift:4

Methods

func mountPrimitive() -> any AnyViewNode

Not documented.

Sources/LavaUI/OptionalView.swift:22

func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode

Not documented.

Sources/LavaUI/OptionalView.swift:32

func structureLines(indent: Int = 0) -> [String]

Not documented.

Sources/LavaUI/OptionalView.swift:11