Chapter 11

Declaring the Symbols

In This Chapter

arrow Using the symbol navigator

arrow Improving error-checking with assertions

arrow Exploring subscript expressions

arrow Recognizing and using patterns

For many developers, the project navigator in the navigator area is their preferred tool for navigating through a project (with the search navigator a close second). Of course, how you use Xcode is totally up to you.

Another navigator, however, is often useful: the symbol navigator, which lets you explore the symbols in your project both alphabetically and hierarchically. Basically, the project navigator lets you navigate by file and group, the search navigator helps you locate something when you know its name, and the symbol navigator looks at your project’s code structure. Yes, it’s possible to sit at your Mac and ask yourself, “Where in the world did I place that code sequence?” but the navigators can help eliminate those painful moments.

In addition to looking at the symbol navigator, this chapter provides information on a few other technologies that don’t fit easily into other chapters, such as Swift ...

Get Swift For Dummies 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.