Created
February 23, 2022 21:35
-
-
Save DmytroShuba/3e15372f845e4cade2e69a9a12ece162 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClickableText( | |
text = annotatedString, | |
onClick = { | |
annotatedString | |
.getStringAnnotations(TAG_URL, it, it) | |
.firstOrNull() | |
?.let { url -> uriHandler.openUri(url.item) } | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment