alexzhirkevich / compottie

Compose Multiplatform Adobe After Effects Bodymovin (Lottie) animations rendering engine
MIT License
125 stars 2 forks source link

Precomps doesn't work without provided assets manager #8

Open Vaibhav2002 opened 6 days ago

Vaibhav2002 commented 6 days ago

What happened?

Some lottie animations are not rendered at all, all i see is a blank screen Examples:

Unsupported features

What Compottie version do you experience the bug on?

2.0.0-beta01

What platforms are you seeing the problem on?

Android, iOS

Does Compottie log anythyng to the stdout / your logger set with Compottie.logger?

No response

alexzhirkevich commented 6 days ago

Reproduced. As a workaround you can provide any non-null assets manager to the painter:

object EmptyAssetsManager : LottieAssetsManager {
    override suspend fun image(image: LottieImage): ImageRepresentable? {
        return null
    }
}

val painter = rememberLottiePainter(
    ...
   assetsManager= EmptyAssetsManager
)