O'Reilly logo

Swift Quick Syntax Reference by Matthew Campbell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter    1

Hello World

I will start our conversation about Swift with the venerable Hello World program. However, you need to get some things in place before I can do that. Most importantly, you need a Mac app that will help you write and test Swift code. This Mac app is called Xcode.

Xcode

Xcode is a free app that you can download from the Apple App Store. Xcode gives you all the tools that you need to build applications for the Mac and iOS devices. These tools include a code editor, debugging tools, and everything else you need to turn your Swift code into an app.

Note  Xcode requires a Mac with OS X 10.9.3 or OS X 10.10. You cannot install Xcode on a Windows- or Linux-based computer.

Install Xcode

To install Xcode, go to the Mac App Store ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required