Has anyone got an article or a tutorial to share explaining how to integrate CfD with some OO framework like JavaFX?
k
Kirill Grouchnikov
02/19/2022, 9:36 PM
What are you looking for? JavaFX specifically for UI interoperability? For some sort of an event bus? Even though composables are usually top level functions, Kotlin still supports classes and objects.
b
Big Chungus
02/19/2022, 9:38 PM
No I gave JFX just as an example. What I'm after is learning how to integrate declarative CfD with an arbitrary imperative UI framework.
k
Kirill Grouchnikov
02/19/2022, 9:43 PM
https://github.com/JetBrains/compose-jb/tree/master/tutorials/Swing_Integration has info on Swing interoperability, along with its limitations. Swing has interoperability with a number of other UI frameworks, but I don't think it's going to be quite useful to talk about some arbitrary UI integration in general. Is there a specific scenario you have in mind?
b
Big Chungus
02/19/2022, 10:01 PM
I think Swing is a perfect start for me. Somehow I've missed it on the repo. My use-case is actually integrating material-components-web into CfW via their foundation APIs, which are class based
d
darkmoon_uk
02/20/2022, 2:14 AM
Following this... I'm interested in driving a 3D scene graph with Compose runtime