/animatedsvg-composable

A composable to animate svg strokes

Primary LanguageKotlinApache License 2.0Apache-2.0

Release

AnimatedSVG Composable

Setup

First, add jitpack in your build.gradle at the end of repositories:

repositories {
   // ...
   maven { url "https://jitpack.io" }
}

Then, add the library dependency:

implementation 'com.github.badoualy:animatedsvg-composable:2.2.1'

Now go do some awesome stuff!

This library is also available as a View: https://github.com/badoualy/kanji-strokeview/

Usage

(See MainActivity sample)

AnimatedSvg(
    strokes = strokes,
    box = RectF(0f, 0f, 109f, 109f),
    modifier = Modifier.fillMaxSize()
)