Hello! Does Compose UI compile to macOS? I'd like ...
# compose-desktop
l
Hello! Does Compose UI compile to macOS? I'd like to integrate it into
AppKit
and into a
ScreenSaverView
I think I'd need this in
gradle.properties
, but is there anything else I'd need? > org.jetbrains.compose.experimental.macos.enabled=true
j
Two years ago the bouncing balls sample compiled for MacOS native, but it seems to have been deleted as a sample. It only worked when you built it yourself, and that's true today as well since none of the packages are built for native (aside from the runtime).
l
Yup, I recall about these, and wow, that was 2 years ago already! I wonder why it's not published (as experimental) anymore, maybe someone from JetBrains has an answer?
g
I think it'd be really nice to not have to jvm package on macos some day as well
d
MacOS native works in some examples, for example in graphics-2d. But it is very experimental
g
Oh thats pretty cool. I know theres a hundred bigger priorities, but is the plan to eventually(in the far future) have native compilation for all platforms and not rely on JVM?
👀 1
d
is the plan to eventually(in the far future) have native compilation for all platforms and not rely on JVM?
not yet
l
Considering the "in the far future", that sounds like a yes? Would macOS support come first in that case?
d
@louiscad Sorry, I can't answer directly on this question. We should focus for now on current tasks and can't give promises about native MacOs support
👍 1
👍🏻 1
a
Got my Compose iOS app run natively on Mac Catalyst Apple Silicon mac and it works surprisedly well, seamlessly brings native mac features like Apple ID auth, App Store billing, push notifications. Release build performance is even better than JVM version. But it behaves like a touch app, doesn't support key / wheel scroll events, text selection is bad. I assume on iPad with Magic Keyboard behaviour is the same
l
How did you get it to work on Mac Catalyst? I thought it wasn't possible to compile to this target blob thinking fast
a
Screenshot 2024-02-24 at 01.35.38.png
1
a
I just launched it on m1 using this button xD not sure is it a Catalyst, i am not an ios dev
l
Oh, I think it's just an iOS app running on an Apple Silicon computer
a
Probably so
l
I also use that sometimes, but it doesn't help for Intel Macs
a
I guess intel macs will die sooner than macOS native / catalyst feature is implemented . So Compose iOS app for Apple Silicon looks promising)
😓 1