---
title: fittingSizeCompression
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nslayoutconstraint/priority-swift.struct/fittingsizecompression
---

# 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

```swift
static var fittingSizeCompression: NSLayoutConstraint.Priority { get }
```

## Discussion

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.

## See Also

### Constants

- [required](appkit/nslayoutconstraint/priority-swift.struct/required.md)
- [defaultHigh](appkit/nslayoutconstraint/priority-swift.struct/defaulthigh.md)
- [dragThatCanResizeWindow](appkit/nslayoutconstraint/priority-swift.struct/dragthatcanresizewindow.md)
- [windowSizeStayPut](appkit/nslayoutconstraint/priority-swift.struct/windowsizestayput.md)
- [dragThatCannotResizeWindow](appkit/nslayoutconstraint/priority-swift.struct/dragthatcannotresizewindow.md)
- [defaultLow](appkit/nslayoutconstraint/priority-swift.struct/defaultlow.md)
