---
title: ciContext
framework: vision
role: symbol
role_heading: Type Property
path: vision/vnimageoption/cicontext
---

# ciContext

An option key to specify the context to use in the handler’s Core Image operations.

## Declaration

```swift
static let ciContext: VNImageOption
```

## Discussion

Discussion If this key isn’t specified, Vision will create its own CIContext. Specify a CIContext when you’ve used one in processing an input CIImage or executing a CIFilter chain, so you can save the cost of creating a new context.

## See Also

### Options Dictionary Keys

- [properties](vision/vnimageoption/properties.md)
- [cameraIntrinsics](vision/vnimageoption/cameraintrinsics.md)
