LavaUI docs GitHub

struct EitherView

Swift

struct EitherView<First, Second> where First : View, Second : View

if / else — fragment (no flex wrapper). Identity is on the branch node.

Sources/LavaUI/EitherView.swift:2

Constructors

init(first: First)

The if branch was taken. Produced by ViewBuilder.buildEither(first:).

Sources/LavaUI/EitherView.swift:15

init(second: Second)

The else branch was taken. Produced by ViewBuilder.buildEither(second:).

Sources/LavaUI/EitherView.swift:17

Properties

var storage: Storage

The branch this view shows.

Sources/LavaUI/EitherView.swift:12

Methods

func mountPrimitive() -> any AnyViewNode

Not documented.

Sources/LavaUI/EitherView.swift:36

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

Not documented.

Sources/LavaUI/EitherView.swift:45

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

Not documented.

Sources/LavaUI/EitherView.swift:19

Types