LavaUI docs

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)

Not documented.

Sources/LavaUI/EitherView.swift:10

init(second: Second)

Not documented.

Sources/LavaUI/EitherView.swift:11

Properties

var storage: Storage

Not documented.

Sources/LavaUI/EitherView.swift:8

Methods

func mountPrimitive() -> any AnyViewNode

Not documented.

Sources/LavaUI/EitherView.swift:30

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

Not documented.

Sources/LavaUI/EitherView.swift:39

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

Not documented.

Sources/LavaUI/EitherView.swift:13

Types