Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Swift iOS Programming for Kids
Swift iOS Programming for Kids

Swift iOS Programming for Kids: Help your kids build simple and engaging applications with Swift 3.0

Arrow left icon
Profile Icon Campagno Profile Icon D. Sommer
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2 (5 Ratings)
Paperback Mar 2017 260 pages 1st Edition
eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Campagno Profile Icon D. Sommer
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2 (5 Ratings)
Paperback Mar 2017 260 pages 1st Edition
eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Swift iOS Programming for Kids

Chapter 1.  What is Programming?

We use programming to instruct a computer. Computers include smartphones (such as the iPhone), tablets, game consoles (such as the PlayStation), and a lot more. We say that a computer runs a program, which means that when you open your favorite game or application (also referred to as an app) on your PlayStation or on your iPhone, the device will know how to interpret and execute the program, which in this case is your game or application. A program is simply a set of instructions that your device is able to understand. We can also consider these instructions as a recipe for the device. The recipe will tell your iPhone what your favorite game is all about-everything from the colors of your avatar, to the text in the menus, to what happens when you tap on an enemy or on an animal in a game. This recipe can be written in many ways depending on your personal preference and the device that is supposed to run it. The programming language refers to the language you choose to write your program in. 

This chapter will go through the following topics:

  • Introducing the Swift programming language
  • Why is programming important?
  • What the reader can expect from this book

What is Programming?

The Swift programming language

Swift is a programming language introduced by Apple, which you can use to create apps for the most common Apple devices, including the iPhone. The language and device you choose defines the possibilities for your program, for example, using Swift and targeting an iPhone as your device, you will be able to access the camera of the iPhone to take photos in your application, or the speaker of the iPhone in order to play sounds in your application. If you choose JavaScript as your programming language, HTML as your markup language and target the browser on your computer as your device, then you will be able to create interactive web pages. A programming language can differ much from language to language, and although the languages can share common concepts, it does not mean that one will master every programming language just by learning one. This leads to what programming is: it is the act of creating a program or recipe for your device to run. What is the result? The result is your program, your application, or your game.

The Swift programming language

Let's imagine this simple application for an iPhone-Movie Night, which has a list of your favorite movies. If the list is longer than the height of your device, you are able to scroll through the list by swiping up and down. You can add movies to your list by tapping a button and entering a name for the movie and you can delete them again by swiping left on the movie in the list. The idea of the app is to keep a list of your favorite movies so that you can remember them when having a movie night. In this case, the program is the application (called Movie Night), the device is the iPhone, and the instructions of the application could be the colors of the background and texts, the list in which you can scroll, and the add and delete functionalities. Programming is about creating these set of instructions so that we are able run our application on our iPhone. If you're excited about creating your own Movie Night app that you can use with your friends, then read along as this is an application we will build together in Chapter 14, Movie Night - iOS App.

Why is programming important?

There are many reasons for why programming is becoming increasingly popular. The result of doing programming allows people to connect through social media, such as Facebook and Instagram; it allows people to be entertained through immersive and rich games; and it allows people to learn and become educated in a fun and engaging manner using interactive applications. Programming has enabled us to share knowledge across geographical boundaries in a way that seemed impossible before programming existed. Programming has helped us automate tasks such as selling tickets at the local train station, paying in a faster and secure way using our smartphone, and programming has helped us measure the well-being of humans in order to give the right treatment at the right moment.

Why is programming important?

Programming has made it possible for us to instruct a computer on how to perform certain tasks in a more efficient and reliable manner than would ever be possible for a human being. There are natural limits to how much a person can do within the 24 hours of a day or within the lifetime of a person's life. Also, it is costly to have a person perform tedious tasks that seem repetitive, time-consuming, or based on deterministic behavior, such as calculations. As it is costly and it can be hard to find the right or, simply, enough people, it also means that it does not scale very well. Computers are relatively cheap and can be considered as fairly stable. If computers break, they are easy to replace, which means that performing tasks using computers scales really well. Just imagine a bank system without computers; imagine people sitting and keeping track of each person's balance and trying to keep it synchronized across large geographical distances.

Why is programming important?

Imagine the recent Pokémon smartphone game being done without computers. With no computers, there would need to be maps distributed to each player that show exactly where a Pokémon is located and people (from the game) would need to be at the actual geographical location in order to tell or validate that the Pokémon trainer had just found a Pokémon. Also, in order to keep track of Pokémon caught, and not to mention the outcome of a battle with another trainer, a lot needs to be handled on paper by the player. Without computers, one can easily think of problems with consistent play experiences, such as verifying that a player does not cheat and modifying the game rules as the game evolves, just to name a few. In general, computers have the ability to enhance our daily life, and we quickly forget what the world would look like without computers. Traditionally, programming has had a steep learning curve and, in general, been inaccessible by younger people. Today, programming is widely used and we have many different languages and tools that solve a lot of different types of problems. This means that it has been possible to lower the learning curve and involve people of different ages and with different capabilities.

What you will learn from this book

This book gives you an introduction to the programming language, Swift. Swift is a fairly new programming language (version 1 came out in September 2014) and the language can be used to write programs for most of the Apple devices, including the iPhone, iPad, Apple Watch, MacBook, and Apple TV. Throughout the book, we will gradually introduce you to more and more programming concepts until we have enough knowledge to start creating our own programs. The book will let you create programs such as a small Pokémon game, where Pokémon will be able to battle each other.

We will also be creating an app to deliver pizzas in outer space and the aforementioned Movie Night app to keep a list of your favorite movies. After creating our programs, you will be able to install the applications on an iPhone and show it to your friends. After being introduced to Swift and the knowledge and tools required to create an application for the iPhone, you should be able to continue to explore this area of programming. You should not only be able to continue working on the applications we create throughout this book, but also be capable of continuing the learning journey using other books or Internet resources. By using the skills provided in this book along with some imagination, a lot of fun and useful applications can be created for iOS devices such as the iPhone.

Summary

In this chapter, we looked at what programming actually is, why it is useful, and examples of what we use programming for. We discussed what a world without programming would look like and we looked at a short introduction to the Swift programming language. Lastly, we introduced what the reader can expect to learn when reading this book and how this can be used moving further into the world of programming.

In the next chapter, we will go over the practical part of getting the user set up with the right tools in order to begin programming.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • - Children can express their creativity while learning through interactive Swift Playgrounds
  • - Empower children to think critically about problems
  • - Learning programming basics can help children gain confidence in problem solving
  • - Help children put their imagination into action building their first iOS app

Description

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.

Who is this book for?

Children who are curious about the technology we use in our daily lives and want to know how it works can use this book to learn about programming and building their first iOS app. No prior programming experience is necessary.

What you will learn

  • - Basic programming and coding fundamentals
  • - Write code using the fun and interactive Swift Playgrounds app
  • - Make animations, including creating your own starry night
  • - Utilise functions by making pizza in code
  • - Create an interactive toy bin
  • - Learn how to use control flow statements to further enhance your toy bin
  • - Build a simple movie night app working with tableviews and arrays

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 22, 2017
Length: 260 pages
Edition : 1st
Language : English
ISBN-13 : 9781787120747
Vendor :
Apple
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Mar 22, 2017
Length: 260 pages
Edition : 1st
Language : English
ISBN-13 : 9781787120747
Vendor :
Apple
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 99.97
Swift 4 Programming Cookbook
€36.99
Swift iOS Programming for Kids
€29.99
Swift 3 Game Development
€32.99
Total 99.97 Stars icon
Banner background image

Table of Contents

14 Chapters
1. What is Programming? Chevron down icon Chevron up icon
2. Getting Set Up Chevron down icon Chevron up icon
3. Say Hello Chevron down icon Chevron up icon
4. Favorite Things Chevron down icon Chevron up icon
5. Factories Chevron down icon Chevron up icon
6. Making Pizza Chevron down icon Chevron up icon
7. Toy Bin Chevron down icon Chevron up icon
8. Smarter Toy Bin Chevron down icon Chevron up icon
9. Making Some Friends Chevron down icon Chevron up icon
10. Pokémon Battle Chevron down icon Chevron up icon
11. Simon Says Chevron down icon Chevron up icon
12. Starry Night Chevron down icon Chevron up icon
13. Space Pizza Delivery Chevron down icon Chevron up icon
14. Movie Night - iOS App Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2
(5 Ratings)
5 star 80%
4 star 0%
3 star 0%
2 star 0%
1 star 20%
George Matty Oct 13, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Enjoying reading and programming Swift with this book. For kids but allows programmers to get quickly to the heart of what you want to do.
Amazon Verified review Amazon
Madina Apr 12, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great introduction to the Swift and programming concepts for children and adults! Easy to follow. We got ebook and paperback. My 10 y.o. son and 11 y.o. daughter enjoying very much every day learning swift and working on creating their first iOS applications.
Amazon Verified review Amazon
IR Apr 10, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The best introduction to Swift programming for young programmers I've ever seen. The examples are fun and approachable, and the authors seem to have a really good grasp of not only how to code, but also how to convey complex topics in the simplest possible terms.
Amazon Verified review Amazon
E. Beans AKA MOSSAD Jul 14, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I had previously read a Pyhon e-Book written by ZBZ, but this book is much better. My twin sons Bizzy and Omar could not put the book down - as it is clear a lot of thought went into making a high level subject accessible for kids.
Amazon Verified review Amazon
Paul F Feb 28, 2019
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
See Ars Technica article, "______ caught selling counterfeits of publisher’s computer books—again". Type is slanted on every page.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.