Debug View Hierarchy

The next feature we'll look at is anything but little known, probably because it makes for such spectacular viewing during presentations. Once again, this is a feature to help us cope with the depth and complexity of the view hierarchy that we are frequently faced with.

We are talking here about the Debug View Hierarchy feature, which is available to us once the app is running.

The button we need for this is shown in the following screenshot:

When we first click on this button, the storyboard disappears and is replaced by the following:

This doesn't look that exciting, it's true. But drag anywhere with the mouse, and ...

Get Mastering macOS Programming 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.