---
title: bounds
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbezierpath/bounds
---

# bounds

The bounding box of the path.

## Declaration

```swift
var bounds: NSRect { get }
```

## Discussion

Discussion This property contains the rectangle that encloses the path of the receiver. If the path contains curve segments, the bounding box encloses the curve but may not enclose the control points used to calculate the curve. If the path is empty, accessing this property raises genericException.

## See Also

### Querying a Path

- [controlPointBounds](appkit/nsbezierpath/controlpointbounds.md)
- [currentPoint](appkit/nsbezierpath/currentpoint.md)
- [isEmpty](appkit/nsbezierpath/isempty.md)
