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

Buttercup


After finally making it to the moon, without a day's rest, we were tasked with a job. All the other kids who were about to land on the moon had toy bins of their own. We were tasked to go through all these toy bins and throw away a particular flower that had a name we'd never heard of before. The name of this flower is Buttercup:

Being the Swift developer that we are, we've decided to write a program to handle this for us. For us (as humans) to go through each item one at a time from every single toy bin, it might take us forever to finish! 

Getting right to it, we decided to create a function to handle this problem for us. This function will need to have one argument. When we look to call on this function, we will be giving it something; the something being an array of strings. That array of strings represents all the different items belonging to one person (their toy bin). In our implementation of this function, we will first create a new empty array (or new empty toy bin), and...