Type Property

fittingSizeCompression

When you send a fittingSize message to a view, the smallest size that is large enough for the view's contents is computed.

Declaration

static let fittingSizeCompression: NSLayoutConstraint.Priority

Discussion

This is the priority level with which the view wants to be as small as possible in that computation. It's quite low. It is generally not appropriate to make a constraint at exactly this priority. You want to be higher or lower.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software