Contents

NSLayoutDimension

A factory class for creating size-based layout constraint objects using a fluent API.

Declaration

class NSLayoutDimension

Overview

Use these constraints to programmatically define your layout using Auto Layout. All sizes are measured in points. In addition to providing size-specific methods for creating constraints, this class adds type information to the methods inherited from NSLayoutAnchor. Specifically, the generic methods declared by NSLayoutAnchor must now take a matching NSLayoutDimension object.

For more information on using layout anchors, see NSLayoutAnchor.

Topics

Building constraints

See Also

Layout Guides