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

hasAnyDescendant

Verifies whether any descendant of the 3D semantic node satisfies the given condition.

hasAnyDescendant

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

Verifies whether any descendant of the 3D semantic node satisfies the given condition.

Recursively descends the 3D semantic structure to locate deeply nested elements.

|-X
|-A |-B   |-C1   |-C2

In case of A, we would check the matcher against B, C1 and C2.

Parameters

matcher The semantic criteria for the expected descendant.

Returns

a matcher validating the presence of the specified descendant.

Last updated: