Skip to content

Instantly share code, notes, and snippets.

@Oleur
Created December 13, 2021 17:53
Show Gist options
  • Save Oleur/00eea66a1796c8eba054f876b18a7b03 to your computer and use it in GitHub Desktop.
Save Oleur/00eea66a1796c8eba054f876b18a7b03 to your computer and use it in GitHub Desktop.
VisualTransformation interface from Android sources
fun interface VisualTransformation {
fun filter(text: AnnotatedString): TransformedText
companion object {
@Stable
val None: VisualTransformation = VisualTransformation { text ->
TransformedText(text, OffsetMapping.Identity)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment