Icons
Iconsanimated

Wi‑Fi connecting

Signal arcs that fill in sequence while a connection is being established.

Installation

caveui components are copy-paste Jetpack Compose built entirely on Material 3 — there's no caveui dependency to add. Make sure Material 3 is on your classpath (it ships with the Compose BOM), then copy the Usage snippet below into your project.

kotlin
// build.gradle.kts (module)
dependencies {
    implementation(platform("androidx.compose:compose-bom:2025.06.00"))
    implementation("androidx.compose.material3:material3")
}

Usage

kotlin
@Composable
fun WifiConnecting() {
    val t = rememberInfiniteTransition(label = "wifi")
    val color = LocalContentColor.current
    Canvas(Modifier.size(40.dp)) {
        val center = Offset(size.width / 2, size.height * 0.78f)
        listOf(0.30f, 0.58f, 0.86f).forEachIndexed { i, r ->
            val alpha by t.animateFloat(
                0.2f, 1f,
                infiniteRepeatable(tween(900, delayMillis = i * 220, easing = EaseInOut), RepeatMode.Reverse),
                label = "arc$i",
            )
            drawArc(
                color.copy(alpha = alpha), 225f, 90f, false,
                topLeft = Offset(center.x - size.width * r, center.y - size.width * r),
                size = Size(size.width * 2 * r, size.width * 2 * r),
                style = Stroke(3.dp.toPx(), cap = StrokeCap.Round),
            )
        }
        drawCircle(color, 2.5.dp.toPx(), center)
    }
}