Book Image

Swift iOS Programming for Kids

By : Steffen D. Sommer, Jim Campagno
Book Image

Swift iOS Programming for Kids

By: Steffen D. Sommer, Jim Campagno

Overview of this book

This book starts at the beginning by introducing programming through easy to use examples with the Swift Playgrounds app. Kids are regularly encouraged to explore and play with new concepts to support knowledge acquisition and retention – these newly learned skills can then be used to express their own unique ideas. Children will be shown how to create their first iOS application and build their very own movie night application.
Table of Contents (21 chapters)
Swift iOS Programming for Kids
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
2
Getting Set Up

Simon says


It is time to use our knowledge about laying out interface elements on our canvas using the Xcode's IB by creating a small application. We will try to make a small Simon Says application, which will not be fully functional, but will have an interface that is similar to a fully working Simon Says app:

A Simon Says application is a simple memory game where the user has to memorize an increasing number of color combinations. Basically, the user takes turns with the application and tries to mimic the colors the application has chosen. For example, if the app starts out by choosing blue, then the user should, afterwards, press the blue button. Then, the application will repeat the already-chosen color blue and then choose a new color, for example, red. Then, the user should press the blue button, followed by the red button. This pattern continues until the user is unable to remember the right combination of colors.

Designing the interface

For this small application, we will use the...