From 83d2b54e35841db97886ba2f9418ecd075041dba Mon Sep 17 00:00:00 2001 From: "dima.avdeev" Date: Wed, 16 Aug 2023 11:29:07 +0300 Subject: [PATCH] Fix iOS ImageViewer example with Compose 1.4.3 and Kotlin 1.9.0 (#3502) --- .../src/iosMain/kotlin/example/imageviewer/platform.ios.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/platform.ios.kt b/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/platform.ios.kt index 92d4b9d370..9bda7e73cc 100644 --- a/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/platform.ios.kt +++ b/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/platform.ios.kt @@ -17,6 +17,7 @@ import platform.Foundation.CFBridgingRelease import platform.UIKit.UIApplication import platform.UIKit.UIImage +@OptIn(ExperimentalForeignApi::class) private val iosNotchInset = object : WindowInsets { override fun getTop(density: Density): Int { val safeAreaInsets = UIApplication.sharedApplication.keyWindow?.safeAreaInsets