Create Interactive Swift Playgrounds

Curious how Apple created their interactive Swift playgrounds, which included embedded code and documentation?

Matt Mathias of Big Nerd Ranch provides some insight:

In this post, I will show you how to peek inside the .playground file to gain a sense of how a Playground is put together. Glancing at these internals will help you to create your own interactive document.