Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

hasAnyChild

Verifies whether any immediate child of the 3D semantic node satisfies the given criteria.

hasAnyChild

Source set: Android
public fun hasAnyChild(matcher: SubspaceSemanticsMatcher): SubspaceSemanticsMatcher

Verifies whether any immediate child of the 3D semantic node satisfies the given criteria.

Useful when testing spatial composite layouts or multiple anchored floating panels grouped under a common parent semantic container.

Parameters

matcher The semantic criteria for the expected child.

Returns

a matcher validating the node's children.

Last updated: