LavaUI docs GitHub

struct TransitionView

Swift

struct TransitionView<Content> where Content : View

content.transition(...)

Attaches to the content's own node where it can, exactly like ModifiedView, so a transition costs no extra layout box unless the content is a fragment with no single node to carry it.

Sources/LavaUI/Transition.swift:109

Constructors

init(content: Content, transition: Transition)

Attaches transition to content. Usually spelled .transition(_:).

Sources/LavaUI/Transition.swift:116

Properties

var content: Content

The view that transitions in and out.

Sources/LavaUI/Transition.swift:111

var dumpDetail: String { get }

Not documented.

Sources/LavaUI/Transition.swift:121

var transition: Transition

How it arrives and leaves.

Sources/LavaUI/Transition.swift:113

Methods

func mountPrimitive() -> any AnyViewNode

Not documented.

Sources/LavaUI/Transition.swift:130

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

Not documented.

Sources/LavaUI/Transition.swift:134

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

Not documented.

Sources/LavaUI/Transition.swift:123