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

eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
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
Estimated delivery fee Deliver to Malta

Premium delivery 7 - 10 business days

€32.95
(Includes tracking information)

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 Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Malta

Premium delivery 7 - 10 business days

€32.95
(Includes tracking information)

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 the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela