---
title: boundingBoxOfPath
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgpath/boundingboxofpath
---

# boundingBoxOfPath

Returns the bounding box of a graphics path.

## Declaration

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

## Discussion

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

## See Also

### Examining a Graphics Path

- [boundingBox](coregraphics/cgpath/boundingbox.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)
