You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val text ="This text animates as though it is being typed \uD83E\uDDDE\u200D♀\uFE0F\uD83D\uDD10\uD83D\uDC69\u200D❤\uFE0F\u200D\uD83D\uDC68\uD83D\uDC74\uD83C\uDFFD"
831
+
832
+
// Use BreakIterator as it correctly iterates over characters regardless of how they are
833
+
// stored, for example, some emojis are made up of multiple characters.
834
+
// You don't want to break up an emoji as it animates, so using BreakIterator will ensure
835
+
// this is correctly handled!
836
+
val breakIterator = remember(text) { BreakIterator.getCharacterInstance() }
837
+
838
+
// Define how many milliseconds between each character should pause for. This will create the
839
+
// illusion of an animation, as we delay the job after each character is iterated on.
0 commit comments