is there any way to query the modifier for a speci...
# compose
m
is there any way to query the modifier for a specific attribute, like contentDescription. In a child composable, i want to be able to extract the parent contentDescription so i can append to child contentDescription name. What would be the best approach of doing this ? I have access to parent modifier
z
This is not possible to do manually, you can't query modifier objects for semantics. I can’t remember how content description merging works but I would think it should append for you, like text does.
Do you should just be able to set the content description on your child and then tell the parents to merge semantics
m
can you ellaborate? How to tell the parent to merge ?
z
Copy code
Modifier.semantics(mergeDescendants = true)