diff --git a/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt b/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt index 1b95bf45..ffedd0ab 100644 --- a/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt +++ b/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt @@ -14,8 +14,6 @@ import androidx.lifecycle.flowWithLifecycle import com.airbnb.lottie.LottieComposition import com.airbnb.lottie.compose.LottieAnimation import com.airbnb.lottie.compose.LottieCompositionSpec -import com.airbnb.lottie.compose.LottieConstants -import com.airbnb.lottie.compose.animateLottieCompositionAsState import com.airbnb.lottie.compose.rememberLottieComposition import com.teamwable.designsystem.theme.WableTheme import com.teamwable.main_compose.R @@ -30,10 +28,6 @@ fun SplashRoute( ) { val lifecycleOwner = LocalLifecycleOwner.current val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.wable_splash)) - val progress by animateLottieCompositionAsState( - composition = composition, - iterations = LottieConstants.IterateForever, - ) LaunchedEffect(Unit) { delay(2000) @@ -52,21 +46,18 @@ fun SplashRoute( WableSplashScreen( composition = composition, - progress = progress, ) } @Composable fun WableSplashScreen( composition: LottieComposition?, - progress: Float, ) { Box( modifier = Modifier.fillMaxSize(), ) { LottieAnimation( composition = composition, - progress = { progress }, modifier = Modifier.align(Alignment.Center), ) } @@ -78,7 +69,6 @@ fun GreetingPreview() { WableTheme { WableSplashScreen( composition = rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.wable_splash)).value, - progress = 1.0f, ) } }