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

Chapter 7. Toy Bin

When creating your application, there might come a point where you need to create a list, or you might come to a point where you want to associate a bunch of values with a bunch of other values (like a real-life dictionary). To solve this problem, we will walk you through what an array is and what a dictionary is in this chapter. These are considered collection types in Swift and are very powerful.

This chapter will help you understand the following things:

  • An array is a collection type that allows you to store an ordered list of values

  • A dictionary is a collection type that is unordered and associates various keys with values

  • An optional is a type that handles the situation where there might not be a value