Difficulty: Beginner
Estimated Time: 10 minutes

This playground provides a personalised sandboxed environment for you to learn and explore Swift.

What are playgrounds?

Playgrounds give you a configured environment to start playing and exploring using an unstructured learning approach.

Playgrounds are great for experimenting and trying samples. To learn more about the technology then start with one of our labs

Thank you for trying the playground. More courses and scenarios are available at on our homepage

Swift Language Playground

Hello World

First: Start Swift Container

docker run --privileged -v $(pwd):/src -w /src -it --rm swift /bin/bash

Copy the following code into the editor.

print("Hello World")

Run the code using swift code.swift

Launch the REPL via swift

Interested in writing your own Swift scenarios and demos? Visit www.katacoda.com/teach