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 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.