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

# boundingBoxOfPath

Returns the smallest rectangle that contains the current path.

## Declaration

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

## Discussion

Discussion The bounding box is the smallest rectangle completely enclosing all points in a path, including control points for Bézier cubic and quadratic curves.

## See Also

### Examining the Current Graphics Path

- [currentPointOfPath](coregraphics/cgcontext/currentpointofpath.md)
- [isPathEmpty](coregraphics/cgcontext/ispathempty.md)
- [pathContains(_:mode:)](coregraphics/cgcontext/pathcontains(_:mode:).md)
