Instance Method

updateConstraintsIfNeeded()

Updates the constraints for the receiving view and its subviews.

Declaration

func updateConstraintsIfNeeded()

Discussion

Whenever a new layout pass is triggered for a view, the system invokes this method to ensure that any constraints for the view and its subviews are updated with information from the current view hierarchy and its constraints. This method is called automatically by the system, but may be invoked manually if you need to examine the most up to date constraints.

Subclasses should not override this method.