---
title: boundingBox
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgpath/boundingbox
---

# boundingBox

Returns the bounding box containing all points in a graphics path.

## Declaration

```swift
var boundingBox: CGRect { get }
```

## Discussion

Discussion The bounding box is the smallest rectangle completely enclosing all points in the path, including control points for Bézier and quadratic curves. If the path is empty, this value is CGRectNull.

## See Also

### Examining a Graphics Path

- [boundingBoxOfPath](coregraphics/cgpath/boundingboxofpath.md)
- [currentPoint](coregraphics/cgpath/currentpoint.md)
- [contains(_:using:transform:)](coregraphics/cgpath/contains(_:using:transform:).md)
- [isEmpty](coregraphics/cgpath/isempty.md)
- [isRect(_:)](coregraphics/cgpath/isrect(_:).md)
