Previewing SwiftUI layouts in Emacs (revisited)

from blog lmno.lol @alvaro, | ↗ original
Back in May 2020, I shared a snippet to extend ob-swift to preview SwiftUI layouts using Emacs org blocks. When I say extend, I didn't quite modify ob-swift itself, but rather advised org-babel-execute:swift to modify its behavior at runtime. Fast-forward to June 2021 and Scott Nicholes reminded me there's still interest in org babel SwiftUI...