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

testTag

Applies a tag to allow modified element to be found in tests.

testTag

Source set: Android
public fun SubspaceModifier.testTag(tag: String): SubspaceModifier

Applies a tag to allow modified element to be found in tests.

This is a convenience method for a semantics that sets SemanticsPropertyReceiver.testTag.

Parameters

tag String used to identify the modified element in tests.

Last updated: