JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.39k stars 1.12k forks source link

Compose Multiplatform support for Mac OS native apps #4580

Closed alexstyl closed 2 months ago

alexstyl commented 3 months ago

Are we ever going to see Mac being supported as a target for Compose Multiplatform similar to iOS native apps?

I am already using Compose on JVM and it's great, however it doesn't give me the flexibility I want to support native features

elijah-semyonov commented 3 months ago

Hi, we don't have plans for supporting macOS native target currently. What kind of restrictions does JVM impose in your case?

alexstyl commented 3 months ago

Would love to be able to add a Share extension to my Mac OS app. This is something I haven't figured out how to do exactly using a JVM app.

The only related resource I have found online on how to do this is this stack overflow answer on how to add a share extension to an electron app. Looking at this makes me think that if I attempt this I will spend days on hacks instead and maybe I will be able to it, instead of focusing on improving my product. As a solo founder this is a huge waste of time/resources, so I would rather not try.

luca992 commented 3 months ago

There is already native macos support, it's pretty buggy though. Things like window resize and text input aren't working last time I checked

elijah-semyonov commented 3 months ago

Oh, no... It's an experimental target that we don't mention, don't give any guarantees about and it's constantly breaking. That's exclusively an internal sandbox and supporting one more platform (as opposed to just JVM environment) is far from trivial due to sheer amount of integrations to be done between specific platform and Compose core.

Considering the amount of work done on CMP for Desktop, just looking into the specific use cases like alexstyl has mentioned and finding out a solution for them is a more feasible approach.

luca992 commented 3 months ago

@elijah-semyonov Despite all that... I think it runs more smoothly than jvm haha. Hopefully it gets official support eventually.

alexstyl commented 2 months ago

Closing this as @elijah-semyonov mentioned there are no plans to support Mac (at least publicly)

If I ever try to attempt the feature i described ill ask in the slack or open a new issue