Just finished a proof of concept for rendering dock icons in pure Compose on native macos. This uses ImageComposeScene and the native AppKit-based Compose (not #compose-desktop). Code lives in this GitHub repo. Watch the dock icon for the app to see the counter update.
Haven’t done any optimizations yet, so it only updates the dock icon once a second.
Landry Norris
02/03/2023, 4:27 AM
I noticed that if I create a Kotlin executable, there’s no app icon present in the dock when I run. Had to create an XCode project that calls my Kotlin code to get it to show up.