Hi all, How can I use WebView for Compose MultiPla...
# compose-desktop
b
Hi all, How can I use WebView for Compose MultiPlatform Desktop ?
n
There is no standard component for WebView in Compose Multiplatform. Though there are a plenty of alternatives in Java for WebView (like JavaFX WebView) that you can embed into Compose using Compose Swing interop (https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Swing_Integration/README.md).
m
You can also experiment with CEF, using its Swing component. See here to learn more about that and how to deploy: https://hydraulic.software/blog/13-deploying-apps-with-jcef.html The primary limitation to be aware of when doing stuff like that is z-ordering. Overlapping stuff with the browser won't work and that includes things like context menus, dropdowns etc. So you have to design your UI with it in mind.
k
1391 Views