A Stable Diffusion app for macOS built with SwiftUI and Apple’s ml-stable-diffusion CoreML models.


Building from source

  1. Clone this repo
  2. Clone my fork of ml-stable-diffusion into the repo.
  3. Follow the instructions to set up the ml-stable-diffusion python library.
  4. Run ./ ./build. You may need to adjust the Conda setup goo in the script.
  5. Edit Gauss/GaussKernel.swift and update GaussKernelResources.sourceCodeRoot to point to the directory where you cloned this repo.
  6. Open project in Xcode and click build!


  • Write prompt text and adjust parameters in the composer view at the bottom.
  • To export an image, just drag it to Finder or any other image editor.
  • You can always generate more images from an existing prompt.


View Github