View Hierarchy

This section covers how to identify the view the hierarchy of each screen to spot UI bugs and issues.

One important category of the reported bugs is the UI problems. Here comes the importance of the View Hierarchy. It makes the process of allocating the problem and fixing it faster and easier. As an example, you might receive a bug that a certain UI view is missing. The first thing you will need to know is if the view is hidden behind a higher layer, out of the parent view's bounds or missing from the window.

What makes it easier is the ability to see all the properties and constraints applied on each subview so you can spot the erroneous one at a glance.

View Hierarchy - Dashboard

View Hierarchy - Dashboard

You can enable or disable the view hierarchy according to your need as shown in the following example.

Instabug.shouldCaptureViewHierarchy = NO;
Instabug.shouldCaptureViewHierarchy = false