I'm trying to add text with a link to an `Annotate...
# compose-desktop
j
I'm trying to add text with a link to an
AnnotatedString
, using
withAnnotation(UrlAnnotation(myUrl)) { append("my text") }
, and with
withAnnotation("url", myUrl) {...}
, but neither are actually making the text clickable. Am I misunderstanding how the API works?
l
Use
ClickableText
with AnnotatedString. In
onClick
, retrieve url from the
offset
parameter.