Xavier Tobin
xaviertobin.bsky.social
Xavier Tobin
@xaviertobin.bsky.social
Software designer, developer of Bundled Notes. Posting about tech, movies, politics and occasionally photography.
I’m working on it!! 😊

bsky.app/profile/xavi...
I’m working on my very first open source library! 🎉

It’s called PatternAnnotatedString, and it allows you to easily style dynamic text in Jetpack Compose - built on top of AnnotatedString.

I still have a few things to do before release, but please check it out! github.com/xavier-tobin...
GitHub - xavier-tobin/PatternAnnotatedString: Easily style dynamic text in Jetpack Compose, built on top of AnnotatedString.
Easily style dynamic text in Jetpack Compose, built on top of AnnotatedString. - xavier-tobin/PatternAnnotatedString
github.com
December 20, 2024 at 10:20 PM
The API is crazy simple and flexible: create pattern annotations that map a pattern -> styles, then apply those annotations to a string.

The library respects the Compose lifecycle and only re-calculates styles if the text or annotations change.
December 20, 2024 at 10:06 PM
The result:
December 6, 2024 at 4:40 AM