File tree Expand file tree Collapse file tree
documentscanner-compose/src/iosMain/kotlin/io/github/kalinjul/easydocumentscan Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ actual fun rememberDocumentScanner(
3030 controller.setDelegate(
3131 DocumentScannerDelegate (
3232 onError = {
33- controller.dismissViewControllerAnimated(true ) {}
33+ controller.dismissViewControllerAnimated(false ) {}
3434 val exception = when (it.code) {
3535 AVErrorApplicationIsNotAuthorizedToUseDevice -> DocumentScannerException .NotAuthorized (it.localizedDescription)
3636 else -> DocumentScannerException .Unknown (it.localizedDescription)
3737 }
3838 onResult(Result .failure(exception))
3939 },
4040 onCancel = {
41- controller.dismissModalViewControllerAnimated (false )
41+ controller.dismissViewControllerAnimated (false ) {}
4242 },
4343 onResult = { result ->
44- controller.dismissViewControllerAnimated(true ) {}
44+ controller.dismissViewControllerAnimated(false ) {}
4545
4646 val documents = (0 .. < result.pageCount.toInt()).map {
4747 val image = result.imageOfPageAtIndex(it.toULong())
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ jvmTarget = "17"
88agp = " 9.0.1"
99
1010# https://github.com/JetBrains/compose-multiplatform
11- compose-multiplatform = " 1.11 .1"
11+ compose-multiplatform = " 1.10 .1"
1212material3 = " 1.10.0-alpha05"
1313# https://kotlinlang.org/docs/multiplatform-compatibility-guide.html
14- kotlin = " 2.4.0 "
14+ kotlin = " 2.2.21 "
1515# https://github.com/google/ksp
1616ksp = " 2.3.4"
1717
You can’t perform that action at this time.
0 commit comments