struct AgentIdentifiedView
Swift
struct AgentIdentifiedView<Content> where Content : View
Attaches a stable agent id to the content's root layout box.
Sources/LavaUI/AgentId.swift:13
Constructors
init(agentId: String, content: Content)
Attaches agentId to content. Usually spelled .agentId(_:).
Sources/LavaUI/AgentId.swift:20
Properties
var agentId: String
The id agents address this view by.
Sources/LavaUI/AgentId.swift:15
var content: Content
The view the id is attached to.
Sources/LavaUI/AgentId.swift:17
var dumpDetail: String { get }
Not documented.
Sources/LavaUI/AgentId.swift:25
Methods
func agentId(_ id: String) -> AgentIdentifiedView<Content>
Collapse .agentId("a").agentId("b") → outer id wins (last in chain).
Sources/LavaUI/AgentId.swift:90
func mountPrimitive() -> any AnyViewNode
Not documented.
Sources/LavaUI/AgentId.swift:35
func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode
Not documented.
Sources/LavaUI/AgentId.swift:39
func structureLines(indent: Int = 0) -> [String]
Not documented.
Sources/LavaUI/AgentId.swift:27