Highlighting Text Input with Jetpack Compose
Buffer
DECEMBER 13, 2022
class UrlTransformation( val color: Color ) : VisualTransformation { } With this class defined, we now need to implement the filter function from the VisualTransformation interface. split("s+" toRegex())? filter { word -> Patterns.WEB_URL.matcher(word).matches() matches() }.forEach split("s+" toRegex())? matches() }.forEach
Let's personalize your content