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
About the Authors
About the Reviewer
Customer Feedback
Getting Set Up

Variables and constants

What's your favorite Disney song? Our is A Whole New World from Aladdin. What's your favorite ice cream flavor? For us, nothing beats vanilla. If we wanted to print out some of our favorite items in a playground file, we know how to do that!

Create a new playground file and name it FavoriteThings, as illustrated. Save it wherever you like; we recommend saving all of this work in a place you can remember. That way, you can access it easily when you need to reference it later on:

Clear out all the code that a newly created playground file provides to you; that way, you're left with a completely blank file:

We mentioned earlier that our favorite Disney song is A Whole New World. We also mentioned that our favorite ice cream flavor is vanilla. Let's pretend, for a second, that your best friend just asked you those questions. Instead of speaking to them, you decide to write some Swift code (because you're an awesome developer) and show them what prints to the console...