Function

clearAndSetSemantics

Allow specifying semantic properties on a curved component, and clearing the existing properties.

clearAndSetSemantics

Source set: Android
public fun CurvedModifier.clearAndSetSemantics(
    properties: CurvedSemanticsScope.() -> Unit
): CurvedModifier

Allow specifying semantic properties on a curved component, and clearing the existing properties. Note that currently only CurvedSemanticsScope.contentDescription and CurvedSemanticsScope.traversalIndex are supported, and they can be applied to curved text and curvedComposable

Sample for clearing semantics:

Parameters

properties The properties to apply, SemanticsPropertyReceiver will be provided in the scope to allow access for common properties and its values.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: