Hello here! I have a question about the `text` pr...
# compose
g
Hello here! I have a question about the
text
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!
a
text
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.