A Typing Animation Library for Compose Multiplatform
Typist
A Compose Multiplatform Text Typing Animation Library for Android and iOS. Visit this link to checkout Typist for Jetpack Compose.
Usage
Add this to your project level “build.gradle” or in newer versions of gradle in “settings.gradle” under repositories section:
repositories {
mavenCentral()
}
Add this to your shared module build.gradle file in commonMain under dependencies section:
api("tech.dev-scion:typist-cmp:TAG")
Replace TAG with library version
Add Typist Composable to your app and configure accordingly:
Typist(
text = "Hi! I am Typist.",
modifier = Modifier
.align(Alignment.Center),
typistSpeed = TypistSpeed.NORMAL,
textStyle = TextStyle(
color = Color.Red,
fontWeight = FontWeight.Bold,
fontSize = 28.sp,
textAlign = TextAlign.Center,
isBlinkingCursor = true, // if true the cursor will keep blinking
isInfiniteCursor = false, // if true the cursor will not hide even after the text has been written
isCursorVisible = true, // if true the cursor will not be visible at all
),
onAnimationEnd = {},
onAnimationStart = {}
)