Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on compose multiplatform 1.7.0-beta01 #219

Open
belgianwaves opened this issue Sep 6, 2024 · 6 comments · Fixed by #220 · May be fixed by #231
Open

Not working on compose multiplatform 1.7.0-beta01 #219

belgianwaves opened this issue Sep 6, 2024 · 6 comments · Fixed by #220 · May be fixed by #231
Assignees
Labels
enhancement New feature or request

Comments

@belgianwaves
Copy link

As the title describes, the library is not working on 1.7.0-beta01

Release note 1.7.0-beta01:
JetBrains/compose-multiplatform-core#1494.
UIKitView and UIKitViewController are deprecated... New API are mentioned in deprecation message. Deprecated invocations should work fine unless custom onResize is used, it is disallowed now and will print a warning.

I get the following exception in xcode

Uncaught Kotlin exception: kotlin.native.internal.IrLinkageError: Function 'UIKitView' can not be called: No function found for symbol 'androidx.compose.ui.interop/UIKitView|UIKitView(kotlin.Function0<0:0>;androidx.compose.ui.Modifier;kotlin.Function1<0:0,kotlin.Unit>?;androidx.compose.ui.graphics.Color;kotlin.Function1<0:0,kotlin.Unit>?;kotlin.Function2<0:0,kotlinx.cinterop.CValue<platform.CoreGraphics.CGRect>,kotlin.Unit>?;kotlin.Boolean;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){0§<platform.UIKit.UIView>}[0]'
at 0 NodeMapp Hike 0x102619d93 kfun:kotlin.Throwable#(kotlin.String?){} + 119
at 1 NodeMapp Hike 0x102612f33 kfun:kotlin.Error#(kotlin.String?){} + 115
at 2 NodeMapp Hike 0x10264f6c3 kfun:kotlin.native.internal.IrLinkageError#(kotlin.String?){} + 115
at 3 NodeMapp Hike 0x10264f787 kfun:kotlin.native.internal#ThrowIrLinkageError(kotlin.String?){}kotlin.Nothing + 175
at 4 NodeMapp Hike 0x103db2b6b kfun:com.multiplatform.webview.web#IOSWebView(com.multiplatform.webview.web.WebViewState;androidx.compose.ui.Modifier;kotlin.Boolean;com.multiplatform.webview.web.WebViewNavigator;com.multiplatform.webview.jsbridge.WebViewJsBridge?;kotlin.Function1<platform.WebKit.WKWebView,kotlin.Unit>;kotlin.Function1<platform.WebKit.WKWebView,kotlin.Unit>;kotlin.Function1<com.multiplatform.webview.web.WebViewFactoryParam,platform.WebKit.WKWebView>;androidx.compose.runtime.Composer?;kotlin.Int){} + 3419
at 5 NodeMapp Hike 0x103db13ab kfun:com.multiplatform.webview.web#ActualWebView(com.multiplatform.webview.web.WebViewState;androidx.compose.ui.Modifier?;kotlin.Boolean;com.multiplatform.webview.web.WebViewNavigator?;com.multiplatform.webview.jsbridge.WebViewJsBridge?;kotlin.Function1<platform.WebKit.WKWebView,kotlin.Unit>?;kotlin.Function1<platform.WebKit.WKWebView,kotlin.Unit>?;kotlin.Function1<com.multiplatform.webview.web.WebViewFactoryParam,platform.WebKit.WKWebView>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} + 1995
at 6 NodeMapp Hike 0x103d8b133 kfun:com.multiplatform.webview.web#WebView(com.multiplatform.webview.web.WebViewState;androidx.compose.ui.Modifier?;kotlin.Boolean;com.multiplatform.webview.web.WebViewNavigator?;com.multiplatform.webview.jsbridge.WebViewJsBridge?;kotlin.Function1<platform.WebKit.WKWebView,kotlin.Unit>?;kotlin.Function1<platform.WebKit.WKWebView,kotlin.Unit>?;kotlin.Function1<com.multiplatform.webview.web.WebViewFactoryParam,platform.WebKit.WKWebView>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} + 3315
at 7 NodeMapp Hike 0x103d8a2b7 kfun:com.multiplatform.webview.web#WebView(com.multiplatform.webview.web.WebViewState;androidx.compose.ui.Modifier?;kotlin.Boolean;com.multiplatform.webview.web.WebViewNavigator?;com.multiplatform.webview.jsbridge.WebViewJsBridge?;kotlin.Function0<kotlin.Unit>?;kotlin.Function0<kotlin.Unit>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} + 3291
at 8 NodeMapp Hike 0x101dc4b6f kfun:be.nodemapp.shared.ui.views#PlannerWebView(com.multiplatform.webview.web.WebViewSt

@KevinnZou KevinnZou self-assigned this Sep 7, 2024
@KevinnZou KevinnZou added the enhancement New feature or request label Sep 7, 2024
@KevinnZou KevinnZou linked a pull request Sep 7, 2024 that will close this issue
@KevinnZou
Copy link
Owner

Please try out the latest release, version 1.9.40-alpha01.

@KevinnZou KevinnZou reopened this Sep 11, 2024
@IliyanIliev
Copy link

IliyanIliev commented Sep 13, 2024

@KevinnZou With the latest version 1.9.40-alpha01, I am experiencing scrolling issues in the webview (iOS devices). Is anyone else having such issues? The issue is when I try to scroll down sometimes it detects the gesture, but most of the time it doesn't and it looks unresponsive.

@msasikanth
Copy link
Contributor

@KevinnZou With the latest version 1.9.40-alpha01, I am experiencing scrolling issues in the webview (iOS devices). Is anyone else having such issues? The issue is when I try to scroll down sometimes it detects the gesture, but most of the time it doesn't and it looks unresponsive.

Same, it's working fine on Android. On iOS I cannot scroll at all.

@KevinnZou
Copy link
Owner

@KevinnZou With the latest version 1.9.40-alpha01, I am experiencing scrolling issues in the webview (iOS devices). Is anyone else having such issues? The issue is when I try to scroll down sometimes it detects the gesture, but most of the time it doesn't and it looks unresponsive.

Same, it's working fine on Android. On iOS I cannot scroll at all.

I suspect that the issue may be related to the latest version of UIKitView, which introduces a new property called UIKitInteropProperties with some logic for gesture interaction.

@msasikanth
Copy link
Contributor

@KevinnZou With the latest version 1.9.40-alpha01, I am experiencing scrolling issues in the webview (iOS devices). Is anyone else having such issues? The issue is when I try to scroll down sometimes it detects the gesture, but most of the time it doesn't and it looks unresponsive.

Same, it's working fine on Android. On iOS I cannot scroll at all.

I suspect that the issue may be related to the latest version of UIKitView, which introduces a new property called UIKitInteropProperties with some logic for gesture interaction.

Is there an issue with Jetbrains that we can follow up on?

@BlendMax
Copy link

@KevinnZou With the latest version 1.9.40-alpha01, I am experiencing scrolling issues in the webview (iOS devices). Is anyone else having such issues? The issue is when I try to scroll down sometimes it detects the gesture, but most of the time it doesn't and it looks unresponsive.

Same, it's working fine on Android. On iOS I cannot scroll at all.

I suspect that the issue may be related to the latest version of UIKitView, which introduces a new property called UIKitInteropProperties with some logic for gesture interaction.

Is there a temporary solution to the scrolling issue?

msasikanth added a commit to msasikanth/compose-webview-multiplatform that referenced this issue Sep 25, 2024
This will ensure that touch interactions are not processed by the Compose UI and passed down to the interop view.

fixes: KevinnZou#219 KevinnZou#228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
5 participants