Download Swift Playgrounds

Tap a download link below to save the Swift Playground book to your iPad or Mac, then open it in Swift Playgrounds.

Playgrounds

Europe Code Week 2021: App Inclusivity Playground

A playground to explore developing from a prototype

We'll learn a little bit about how code backs a prototype we might have developed in Keynote. Play with a live version of the prototype and see how code can affect what you see on the screen.

Download Playground (.zip)

Code Hub: Text Adventure

A playground that takes you on an adventure!

We tell stories with text and build connections between fictional rooms. Build your own stories and share them, too!

Download Playground (.zip)

App at Home

A starter playground for building an app in a playground

Use the leg up given by the Camera Create Starting Point and build an app in a playground.

Download Playground (.zip)

Code Hub Answers

A starter playground for building a quiz with variables

We learn how to use variables to store user input and react to it.

Download Playground (.zip)

Turtle Graphics - Simplified

A starter playground for playing with turtle graphics

Learn some simple commands to drive a 'turtle' around the screen to draw shapes, solve problems, and get introduced to some computer programming concepts.

Download Playground (.zip)

Turtle Graphics

A more in-depth playground for playing with turtle graphics

Learn some simple commands to drive a 'turtle' around the screen to draw shapes, solve problems, and get introduced to some computer programming concepts. For people who might have used Python's turtle graphics module.

Download Playground (.zip)

Fundamentals of Programming

A course to introduce you to the fundamentals of programming with Swift Playgrounds

Learn to code with simple commands and a gentle introduction to computer programming concepts.

Download Playground (.zip)

Holiday Turtle Graphics

A holiday-themed playground for playing with turtle graphics

Using some of the simple commands in turtle graphics, you can draw a tree a few different ways and then decorate it. Now with more wintry fun for 2019!

Download Playground (.zip)

Adventures

My Connected App

Build your own connected app

See an example of how to construct an app that needs to connect to external sources of data.

Download Playground (.zip)

App-Wide Settings App

Build your own app with settings that trickle down over pages

See an example of how to construct an app that has settings for the background and foreground color and can cascade it down.

Download Playground (.zip)

MyCloset

Build your own closet app

See an example of how to construct an app in stages of increasing complexity.

Download Playground (.zip)

ChatBot

Build your own ChatBot

See an example of a ChatBot and how you might make your own with SwiftUI and Playgrounds!

Download Playground (.zip)

Sharing Photos App

Use the image gallery app to learn how to share photos, too

See an example of how to construct an app that has images and buttons to share them... both from the photo picker and from the asset catalog.

Download Playground (.zip)

Beach Cleanup

An example of using the About Me template to create a beach cleaning app

We integrate Maps and use the TabView to build out our prototype

Download Playground (.zip)

Drawing Canvas

Learn to Connect with UIKit

Description forthcoming

Download Playground (.zip)

Modal Sheets

Display a Modal Sheet for Editing

Description forthcoming

Download Playground (.zip)

Map Background

Learn to Stack a Map

Description forthcoming

Download Playground (.zip)

Space Photo

Learn to Connect with the Internet

Description forthcoming

Download Playground (.zip)

Drawing Flags

Learn to Compose Views

Using flags as our inspiration, learn how to compose views and shapes in SwiftUI

Download Playground (.zip)

Animated Images

A playground that shows off how to make an animated image and display it from a series of UIImages

We have a timer that will count up when we tap Start Timer, stop when we tap Stop Timer, and keep track of time in SwiftUI!

Download Playground (.zip)

SwiftUI Observable

A playground that explores using ObservableObjects

We have a timer that will count up when we tap Start Timer, stop when we tap Stop Timer, and keep track of time in SwiftUI!

Download Playground (.zip)

UIView Playground

Animate an image across a UIView

A playground that uses a UIView for our live view and animates an image across it

Download Playground (.zip)