https://kotlinlang.org logo
m

mbonnin

09/13/2021, 8:05 AM
Can I create a (edit: Native) MacOS app without writing a single line of Swift? If yes, is there a sample somewhere?
d

Didier Villevalois

09/13/2021, 8:09 AM
Sure! You can use the JVM on MacOS. For the UI, you'll need a framework that also works on the JVM. For instance, Compose for Desktop.
Or I see that maybe you meant a native app?
m

mbonnin

09/13/2021, 8:15 AM
Yes, Native is the goal
👍 1
b

Big Chungus

09/13/2021, 8:28 AM
I can't see why you couldn't avoid swift, however you still need xcode (whole ide, not just cmd line tools) installed to build, sadly...
👍 1
m

mbonnin

09/13/2021, 8:38 AM
Copy code
binaries {
  executable {
    entryPoint = "com.example.main"
  }
}
was what I was looking for. Thanks all!
👍 2
d

darkmoon_uk

09/13/2021, 11:14 AM
Have done this with iOS before... Full
.kt
main function, zero Swift. I felt like a King doing it.
💯 3
☝️ 2
🤣 4