-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Learning Swift
By :

If we want to move away from developing with a single file, we need to move away from playgrounds and create our first project. In order to not complicate the project too much, we will create a command-line tool project. This is a program that does not have a graphical interface. As an exercise, we will redevelop our example program from Chapter 2, Building Blocks – Variables, Collections, and Flow Control, which manages invites to a party. We will develop an app with a graphical interface in Chapter 10, A Whole New World – Developing an App.
To create a new command-line tool project, open Xcode and from the menu bar along the top, navigate to File | New | Project. A window will appear that allows you to select a template for the project. Choose Command Line Tool from the OS X | Application menu, as shown in the following figure:
From there, click on Next and then give the project a name such as Learning Swift Command Line
. Any...
Change the font size
Change margin width
Change background colour