Chapter 1. Creating Swift Projects

Getting started with Swift development is simple if you are already an iOS or OS X developer. The entire Swift toolchain is supplied with Xcode 6 and even comes with a few extra goodies, such as the Swift REPL and playgrounds.

Your First Swift Project

To create your first Swift project, choose File > New > Project from the main menu. Xcode displays the template chooser dialog allowing you to select the type of iOS or OS X project you want to create—a single view iOS application is sufficient to follow along. The “Choose options for your new project” dialog looks very similar to the way it did in previous Xcode versions, with two significant differences: The Class Prefix field is no longer present and has been ...

Get Swift Translation Guide for Objective-C Users: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.