https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
l

louiscad

02/21/2024, 11:30 AM
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

jw

02/21/2024, 12:27 PM
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

louiscad

02/21/2024, 12:30 PM
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

Garret Yoder

02/21/2024, 1:49 PM
I think it'd be really nice to not have to jvm package on macos some day as well
d

Dima Avdeev

02/21/2024, 5:12 PM
MacOS native works in some examples, for example in graphics-2d. But it is very experimental
g

Garret Yoder

02/21/2024, 5:20 PM
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

Dima Avdeev

02/21/2024, 5:34 PM
is the plan to eventually(in the far future) have native compilation for all platforms and not rely on JVM?
not yet
l

louiscad

02/21/2024, 5:40 PM
Considering the "in the far future", that sounds like a yes? Would macOS support come first in that case?
d

Dima Avdeev

02/22/2024, 4:08 AM
@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

Alexander Zhirkevich

02/23/2024, 11:30 PM
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

louiscad

02/23/2024, 11:38 PM
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

Alexander Zhirkevich

02/23/2024, 11:38 PM
Screenshot 2024-02-24 at 01.35.38.png
1
a

Alexander Zhirkevich

02/23/2024, 11:40 PM
I just launched it on m1 using this button xD not sure is it a Catalyst, i am not an ios dev
l

louiscad

02/23/2024, 11:40 PM
Oh, I think it's just an iOS app running on an Apple Silicon computer
a

Alexander Zhirkevich

02/23/2024, 11:41 PM
Probably so
l

louiscad

02/23/2024, 11:41 PM
I also use that sometimes, but it doesn't help for Intel Macs
a

Alexander Zhirkevich

02/23/2024, 11:48 PM
I guess intel macs will die sooner than macOS native / catalyst feature is implemented . So Compose iOS app for Apple Silicon looks promising)
😓 1
3 Views