Hour of Code With Swift Playgrounds: Facilitator Guide
Hour of Code With Swift Playgrounds: Facilitator Guide
Facilitator Guide
Optional: Display for guiding participants
through the activities.
*For younger students, check out the Hour of Code materials on www.code.org/learn.
Participants using their own iPad devices will also need to follow these steps to prepare for
the event:
1. Download the Swift Playgrounds app.
2. Open the Swift Playgrounds app.
3. On the Featured page, tap the Hour of Code challenge.
4. Tap Get, then tap Open.
Commands and
Intro (5 minutes)
Sequences (5 mins) Welcome your group to the event and take a few minutes to introduce coding and Swift
Playgrounds. Remind participants how code powers virtually everything around us. When
Issuing Commands (15 mins) you want a pizza, code places your order online. And when you use your favorite apps,
code lets you send a message, share a photo, or swap faces with your cat in a photo.
If you have a video display or projector, show this inspiring video about how developers
got their start (four minutes, includes sound).
Functions (20 mins)
www.apple.com/education/everyone-can-code/
#developer-video
www.apple.com/education/everyone-can-code/
#developer-video
For Loops (10 mins)
www.apple.com/education/everyone-can-code/
#developer-video
www.apple.com/education/everyone-can-code/
#developer-video
Explain that Swift Playgrounds is an app for iPad that helps you learn and explore coding
with Swift, the same powerful programming language used to create popular apps for the
App Store.
Your participants get to tell you what to do! Have the group come up with ideas for an action that
requires multiple steps. For example, they could have you draw a smiley face on the board or do
five jumping jacks. The goal of this activity is for participants to understand the level of detail and
precision needed when coding.
Examples
Draw a smiley face on the board. Do a jumping jack.
1. Walk to the board. 1. Stand with your feet together and arms at your side.
2. Pick up a marker with the tip facing down. 2. Jump and land with your feet two feet apart and lift
3. Take the cap off the marker. your arms straight up in a V shape…and so on.
4. Draw a circle on the board…and so on.
Let your participants decide on the action without telling you what it is. Once they’ve decided, they
can shout out step-by-step directions to you. Follow their directions exactly, even if it means doing the
action incorrectly.
Before moving into the app, lead a brief discussion about the activity. Every day we do things without
thinking about all the steps needed to accomplish them, so it can be challenging to communicate each
step to another person or to a computer when coding.
Now have your group work on the following three puzzles in the Functions chapter without your guidance; let
them know that this is an opportunity to work independently or with a partner, applying what they’ve learned:
• Composing a New Behavior
• Creating a New Function
• Slotted Stairways
Wrap-up (5 minutes)
Congratulate your group for completing their Hour of Code with Swift
Playgrounds. At the end of the session, show them how to use the
Table of Contents to see their Swift Playgrounds Hour of Code participation
certificate. Remind them that they can keep learning by downloading the
Learn to Code 1 and 2 playgrounds. Encourage them to keep coding so
that one day they can build apps that bring their ideas to life.
• Swift Playgrounds: Learn to Code 1 & 2 Teacher Guide provides lesson plans, evaluation rubrics, downloadable
presentations, and more to help any teacher bring Swift Playgrounds into the classroom.
• Video Lessons for Swift Playgrounds on iTunes U is a great new course that features helpful videos for anyone
learning or teaching with Swift Playgrounds. Videos include classroom lesson instruction, puzzle overviews,
and hints for making the most of the Learn to Code curriculum.
• App Development with Swift: Teacher Guide is designed for use with high school and college students who
are new to programming. It provides lesson activities, presentation tips, and student reflection questions.
© 2016 Apple Inc. All rights reserved. Apple, the Apple logo, iPad, iPad Air, iTunes U, and Mac are trademarks of Apple Inc., registered in the U.S. and other countries. iPad mini, iPad Pro, Multi-Touch,
and Swift are trademarks of Apple Inc. App Store is a service mark of Apple Inc., registered in the U.S. and other countries. Hour of Code is a trademark of Code.org. IOS is a trademark or registered
trademark of Cisco in the U.S. and other countries and is used under license.
Hour of Code with Swift Playgrounds | Facilitator Guide | 9
!