Documentation

The documentation for any programming language is an indispensable resource, and Swift’s is no exception.

Open the documentation that shipped with Xcode by clicking HelpDocumentation and API Reference at the top. See Figure 9.3.

Figure 9.3  Help menu

Help menu

A new window will open. In the search bar at the top, type in Array and hit Return on your keyboard. This will open the documentation for Swift’s Array type, as in Figure 9.4.

Figure 9.4  Opening the documentation

Opening the documentation

Take some time and explore the ...

Get Swift Programming: The Big Nerd Ranch Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.