Conversation

Fahim Farook

The images show two separate iterations of the same app — the first is a SwiftUI app for doing #StableDiffusion image generation using #CoreML. That took several weeks of work to create and it never really worked right — I could only do single selection of images, couldn’t drag and drop more than one image, and it took a fair amount of time to implement even trivial stuff.

The second is the same app implemented using AppKit. It took essentially one day (yesterday). Multiselection was built-in, drag and drop (for multiple items) was a couple of lines of code, and I implemented a bunch of other things I wanted to do fairly easily.

On top of that, the app feels faster, lighter, and more responsive than the SwiftUI version for the exact same task, using the exact same models.

SwiftUI has a long way to go still, if it will even ever get there …

#Coding #macOS #Swift #SwiftUIvsAppKit
Screenshot of an image generati…
Screenshot of an image generati…
0
2
6