Contents

isHorizontalContentSizeConstraintActive

A Boolean value that indicates whether the view’s horizontal size constraints are active.

Declaration

var isHorizontalContentSizeConstraintActive: Bool { get set }

Discussion

Setting this property to false lets Auto Layout optimize layout operations by ignoring the view’s intrinsic content size. The default value of this property is true, which causes the system to take the view’s content size into account.

See Also

Enabling and Disabling Constraints