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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift iOS Programming for Kids

You're reading from   Swift iOS Programming for Kids Help your kids build simple and engaging applications with Swift 3.0

Arrow left icon
Product type Paperback
Published in Mar 2017
Publisher Packt
ISBN-13 9781787120747
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Steffen D. Sommer Steffen D. Sommer
Author Profile Icon Steffen D. Sommer
Steffen D. Sommer
Jim Campagno Jim Campagno
Author Profile Icon Jim Campagno
Jim Campagno
Arrow right icon
View More author details
Toc

Chapter 3.  Say Hello

For historic reasons, the first program we usually make when learning a new programming language is a program that simply outputs the text Hello World to the console. Printing to the console is reasonably simple and is, therefore, often a good starting point to ensure that everything is set up correctly. To honor traditions, we will do the same with our very first program written in the Swift programming language:

print("Hello World")

Exciting! To achieve this, the chapter will cover the following topics:

  • Introducing a console application
  • Setting up our first Xcode playground and taking a look at the most important parts of a playground
  • Writing our first Hello World program using Swift and a playground
  • A quick look at how Xcode playground communicates errors and how we can use autocompletion to write code faster and more safely
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image