---
title: checkSpaceForParts()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsscroller/checkspaceforparts()
---

# checkSpaceForParts()

Checks to see if there is enough room in the receiver to display the knob and buttons.

## Declaration

```swift
func checkSpaceForParts()
```

## Discussion

Discussion The  usableParts property contains the state calculated by this method. You should never need to invoke this method; it’s invoked automatically whenever the scroller’s size changes.

## See Also

### Calculating Layout

- [rect(for:)](appkit/nsscroller/rect(for:).md)
- [testPart(_:)](appkit/nsscroller/testpart(_:).md)
- [usableParts](appkit/nsscroller/usableparts-swift.property.md)
