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

Laying out a view

In order to make a GUI, we need a strategy. For example, how do we control that a certain button should have the red color? How do we ensure that the background color changes when the user taps on the button? How do we position our different UI elements so that they look reasonable across different devices with different screen sizes, such as the iPhone and iPad? In order to answer all these questions, we need a way to control the UI. Apple offers us some tools and patterns that have been developed over time. Some of the concepts are similar to other platforms and some are specific when you develop applications for Apple devices.

Setting up a new iOS project

IB is a tool offered as part of Xcode. It is a tool for designing and laying out a UI. It helps the creator visualize what the interface will look like when running the application and also enables faster prototyping when a UI is needed.

Go ahead and open Xcode if it is not already open. If you see the welcome view, then...