/compose-scale-box

Android compose scale box. eg. PhotoView

Primary LanguageKotlinMIT LicenseMIT

Demo

@Composable
fun SimpleSample() {
    ScaleBox(
        modifier = Modifier.fillMaxSize(),
        onTap = {
            logMsg { "onTap" }
        }
    ) {
        Image(
            painter = painterResource(id = R.drawable.image1),
            contentDescription = "",
        )
    }
}