Is there any way I can show a composable in a macO...
# compose-ios
g
Is there any way I can show a composable in a macOS app? I tried using
Window
but it's not much customisable, any other way?
i
For desktop we currently support only jvm targets. (macos native is buildable, but doesn't properly work) Swing interop tutorial: https://github.com/JetBrains/compose-multiplatform/tree/master/tutorials/Swing_Integration
g
What do you mean with doesn't properly work?
i
We're keeping it to test metal render API, but as far as I remember things like input (keyboard) not worked at all. Anyway, as I mentioned - it isn't officially supported. Desktop is only jvm for now
👍 1
g
Alright thank you
One last question just to decide whether trying out that route or not. I basically just need a big popup with some text in it, and a big fullscreen shadow. Like a semitransparent borderless window with some text in the center. Do you think this is feasable? Asking also because it takes around 15 minutes to compile compose to an xcFramework so trying stuff out is time consuming
i
Sounds just like regular
Dialog
, so it's a simple case for compose app
g
The whole macos app is in swiftui already, so you meant Dialog as in swing?
i
I meant compose Dialog element in compose app. If whole app is in swiftui it probably makes sense to add this element in swift ui to to avoid introducing extra dependencies
👍 1