gpaligot
05/06/2022, 8:29 AMtext
property we can call inside the semantics
callback. What is the difference between text
and contentDescription
and why we should use an AnnotatedString
as value? 🤔
Thanks in advance!Albert Chang
05/06/2022, 8:56 AMtext
is the actual text of a text component and contentDescription
is the description of a non-text component. Generally you shouldn’t set these yourself and should instead use foundation components.