View is mysteriously empty

If you can't see your view: UIView, here is a quick checklist to go through:

  • Set view.translatesAutoresizingMaskIntoConstraints = false

  • Set and activate all FOUR constraints (top, bottom, trailing, leading)

  • Ensure view.isHidden = false