Skip to content

Commit 82fb5b6

Browse files
add init function to CropModifier
1 parent b74c9ef commit 82fb5b6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cropper/src/main/java/com/smarttoolfactory/cropper/CropModifier.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ fun Modifier.crop(
4949
) = composed(
5050

5151
factory = {
52+
53+
LaunchedEffect(key1 = cropState){
54+
cropState.init()
55+
}
56+
5257
val coroutineScope = rememberCoroutineScope()
5358

5459
// Current Zoom level

0 commit comments

Comments
 (0)