Irving
10/13/2020, 11:22 AMCircularProgressIndicator
to learn how to write a custom view.But I'm confused about the Modifier.semantics
. I thought it's SemanticsModifierCore
may store the properties of `CircularProgressIndicator`,but i did't see anything about SemanticsModifierCore
in CircularProgressIndicator
.So what does Modifier.semantics
do for us?😢fun Modifier.semantics(
mergeAllDescendants: Boolean = false,
properties: SemanticsPropertyReceiver.() -> Unit
): Modifier = composed {
val id = remember { SemanticsModifierCore.generateSemanticsId() }
SemanticsModifierCore(id, mergeAllDescendants, properties)
}
Adam Powell
10/13/2020, 1:17 PMallan.conda
10/13/2020, 1:55 PMand similarincluding testing
Irving
10/14/2020, 2:02 AM