Blog

Welcome to the Swift Playground

Jeroen Leenarts

Updated April 30, 2025
1 minute

Imagine... You're working in swift code and you need to explain something to a co-worker. Easiest would be to just explain it and show the code right. So you grab your trusty editor and type some markdown. let it = "be awesome" Great! So now you have a file filled with content:

swift-markdown

But it would be better if it looked like:

playground

Well you can and it's super simple, all you need is some Markdown and: npm install -g swift-playground-builder After that it's a matter of running: playground my-super-nice-markdown-with-swift-code.md Enjoy! More info: Github swift-playground-builder

Written by

Jeroen Leenarts