NSLayoutRelation
NSLayoutRelation
Enum
Definition
An enumeration that specifies the relation between two attributes in a NSLayoutConstraint
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum NSLayoutRelation
type NSLayoutRelation =
- Inheritance
- Attributes
Fields
Equal Equal | 0 | An equality relationship. |
GreaterThanOrEqual GreaterThanOrEqual | 1 | A greater-than-or-equal relationship. |
LessThanOrEqual LessThanOrEqual | -1 | A less-than-or-equal relationship. |
Remarks
Constraint-based layouts are based on relationships between the values of two NSLayoutAttributes. Constraints can be made more flexible by allowing relationships other than strict equality, that is, GreaterThanOrEqual or LessThanOrEqual. With relations other than Equal the constraint solver will attempt to minimize the difference in attributes. If Equal is specified and the constraint solver cannot solve the system of constraints, the constraint solver will throw an exception.
Applies to
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...