I'm having some issues setting the semantics, merg...
# compose
e
I'm having some issues setting the semantics, mergeDescendants and contentDescription. When I try to set the content description on the semantics modifier using mergeDescendants, it keep reading the text from its descendants.
Copy code
.semantics(mergeDescendants = true) {
    contentDescription = "Semantics replacement"
}
but when I set using the modifiers semantics and clearAndSetSemantics works.
Copy code
.semantics(mergeDescendants = true) {}
.clearAndSetSemantics {
    contentDescription = "Semantics replacement"
}
is this expected? Complete column code on thread
This works
Copy code
Column (
    modifier = Modifier
        .fillMaxSize()
        .semantics(mergeDescendants = true) {}
        .clearAndSetSemantics {
            contentDescription = "Semantics replacement"
        }


){
    Text( "Text 1")
    Text( "Text 2")
}
This doesn't work
Copy code
Column (
    modifier = Modifier
        .fillMaxSize()
        .semantics(mergeDescendants = true) {
            contentDescription = "Semantics replacement"
        }
){
    Text( "Text 1")
    Text( "Text 2")
}