UIView's updateConstraints method has a note:
You must not invalidate any constraints as part of your constraint update phase. You also must not invoke a layout or drawing phase as part of constraint updating.
It is not clear to me what would invalidate constraints.