O'Reilly logo

Swift Programming: The Big Nerd Ranch Guide by John Gallagher, Matthew Mathias

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

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 (Figure 9.3).

Figure 9.3 Help menu

Screenshot shows the list of Help menu. Search text box is at the top. Documentation and API Reference, Xcode Overview, Release Notes, What’s New in Xcode, Quick Help for Selected Item, and Search Documentation for Selected Text are the options in the 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

Screenshot shows the documentation for Swift’s Array type.

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