I've got a pure Swift Metal renderer and bindings for libghostty-vt. This will enable libghostty users to basically drop a package into their Swift/Xcode projects and get a full blown terminal (emulation, rendering, or both). Coming soon...
Note that Ghostty itself has always been Metal-rendered on macOS, but Ghostty has a really complicated generic renderer and font subsystem meant to work across any combination of graphics API or font API.
This, on the other hand, is a pure Swift Apple-ecosystem (macOS and iOS) only package for libghostty embedders.