Running code snippets using the playground macro | Apple Developer Documentation

Add playgrounds to your code that run and display results in the canvas.