https://kotlinlang.org logo
Title
a

Arslan Armanuly

04/14/2021, 11:51 AM
Is there any webview library for the compose for desktop?
a

altavir

04/14/2021, 11:55 AM
https://github.com/JetBrains/compose-jb/tree/master/cef Sadly, there are no examples or comonent wrappers for now. I am waiting for that as well.
a

Arslan Armanuly

04/14/2021, 11:56 AM
Oh thats truly sad. Are there any dates or approximations when it will be available?
o

olonho

04/14/2021, 12:11 PM
CEF integration is in pre-alpha state, but contributions are welcome
a

Arslan Armanuly

04/14/2021, 2:23 PM
I went with using javafx's webview and is there any way to draw upon it? When I used
Surface
, it apparently didn't work
Most sane solution I ve thought of was to create panel with
OverlayLayout
. It works with Swing panels but when I add
ComposePanel
it stops working
p

Pedro Gomez

09/09/2021, 11:31 AM
hey any update on this one? @Arslan Armanuly I'm wondering if I could use a webview for my app but I don't know the state of the art. If CEF is pre-alpha, could we use something like JavaFX components inside compose-desktop components?
a

Arslan Armanuly

09/09/2021, 12:07 PM
Yeah, I got it working with JavaFX webview. But sadly it didn't fit for my solution because compose interop with swing or swing interop with JavaFX didn't allow transparency between layers so I stopped working
p

Pedro Gomez

09/09/2021, 8:45 PM
thanks!