theapache64
12/11/2023, 5:29 PMclearAndSetSemantics
function
this 👇 removed the testTag
from the merged tree
Box(
modifier = Modifier
.clearAndSetSemantics {
contentDescription = "My Red Box"
}
.testTag("red_box")
.size(100.dp)
.background(Color.Green)
) {
}
but moving the clearAndSet
call after testTag
doesn’t
Box(
modifier = Modifier
.testTag("red_box")
.clearAndSetSemantics {
contentDescription = "My Red Box"
}
.size(100.dp)
.background(Color.Green)
) {
}
Why modifier order works reverse here? 🤔Zach Klippenstein (he/him) [MOD]
12/11/2023, 5:31 PMclearAndSetSemantics
function clears the semantics of everything under/after it.theapache64
12/11/2023, 5:51 PMtheapache64
12/12/2023, 6:40 PMZach Klippenstein (he/him) [MOD]
12/12/2023, 7:06 PM