UIKit.NSLayoutRelation Enumeration

An enumeration that specifies the relation between two attributes in a UIKit.NSLayoutConstraint

[ObjCRuntime.Native]

public enum**NSLayoutRelation**

public enum

Constraint-based layouts are based on relationships between the values of two UIKit.NSLayoutAttributes. Constraints can be made more flexible by allowing relationships other than strict equality, that is, NSLayoutRelation.GreaterThanOrEqual or NSLayoutRelation.LessThanOrEqual. With relations other than NSLayoutRelation.Equal the constraint solver will attempt to minimize the difference in attributes. If NSLayoutRelation.Equal is specified and the constraint solver cannot solve the system of constraints, the constraint solver will throw an exception.

Member Name | Description |
---|---|

Equal | An equality relationship. |

GreaterThanOrEqual | A greater-than-or-equal relationship. |

LessThanOrEqual | A less-than-or-equal relationship. |