How To Debug UIView in the Blind

I’ve been working a lot with junior iOS devs this week, and a common issue keeps coming up. They’ll add a UIView to the screen but, for whatever reason, it doesn’t display.

This type of problem isn’t in any way difficult to debug, but it does require experience. In an effort to help junior devs out there fill in some of those experiential gaps, I present:

Tips for Debugging UIView in the Blind

Implementing the following (often in combination) can help diagnose the source of common view problems.

Existence

Visibility

Hierarchy

Containment

Autolayout

Xcode

Minimum Viable Reproduction