onseok / peekaboo

🌄 Kotlin Multiplatform library for Compose Multiplatform, designed for seamless integration of an image picker feature in iOS and Android applications.
Apache License 2.0
241 stars 20 forks source link

ResizeOptions doesn't work on IOS #105

Open VadimZhuk0v opened 2 weeks ago

VadimZhuk0v commented 2 weeks ago

Resize option doesn't work on IOS, android works good

Code example:


    val coroutineScope = rememberCoroutineScope()
    val imagePicker = rememberImagePickerLauncher(
        selectionMode = SelectionMode.Single,
        scope = coroutineScope,
        onResult = viewModel::avatarSelected,
        resizeOptions = ResizeOptions(
            width = 800,
            height = 800,
            resizeThresholdBytes = 1048576L,
            compressionQuality = 1.0,
        ),
    )

Environment: IOS version: 18.0.1 Peekaboo: 0.5.2 kotlin: 2.0.21 compose-plugin: 1.7.0