From 61a559ad93f8dda040600aa410db69487ddfb91e Mon Sep 17 00:00:00 2001 From: paregi12 Date: Sun, 28 Jun 2026 02:24:29 +0530 Subject: [PATCH] Fix iOS build error: CGRect type mismatch in WKWebView frame --- .../features/plugins/runtime/network/CloudflareKiller.ios.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/composeApp/src/iosFull/kotlin/com/nuvio/app/features/plugins/runtime/network/CloudflareKiller.ios.kt b/composeApp/src/iosFull/kotlin/com/nuvio/app/features/plugins/runtime/network/CloudflareKiller.ios.kt index 523942e8d..ab288268d 100644 --- a/composeApp/src/iosFull/kotlin/com/nuvio/app/features/plugins/runtime/network/CloudflareKiller.ios.kt +++ b/composeApp/src/iosFull/kotlin/com/nuvio/app/features/plugins/runtime/network/CloudflareKiller.ios.kt @@ -2,6 +2,7 @@ package com.nuvio.app.features.plugins.runtime.network import co.touchlab.kermit.Logger import kotlinx.cinterop.ExperimentalForeignApi +import kotlinx.cinterop.readValue import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.NonCancellable @@ -56,7 +57,7 @@ internal object IosWebViewSolver : WebViewSolver { withContext(Dispatchers.Main) { val config = WKWebViewConfiguration() val webView = WKWebView( - frame = platform.CoreGraphics.CGRectZero, + frame = platform.CoreGraphics.CGRectZero.readValue(), configuration = config, ) webView.customUserAgent = webViewUserAgent @@ -99,7 +100,7 @@ internal object IosWebViewSolver : WebViewSolver { cachedUserAgent?.let { return it } return withContext(Dispatchers.Main) { val webView = WKWebView( - frame = platform.CoreGraphics.CGRectZero, + frame = platform.CoreGraphics.CGRectZero.readValue(), configuration = WKWebViewConfiguration(), ) val deferred = CompletableDeferred()