<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNImageOption/ciContext",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:@VNImageOptionCIContext"
  },
  "title" : "ciContext"
}
-->

# ciContext

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

```
static let ciContext: VNImageOption
```

## Discussion

If this key isn’t specified, Vision will create its own <doc://com.apple.documentation/documentation/CoreImage/CIContext>.

Specify a <doc://com.apple.documentation/documentation/CoreImage/CIContext> when you’ve used one in processing an input <doc://com.apple.documentation/documentation/CoreImage/CIImage> or executing a <doc://com.apple.documentation/documentation/CoreImage/CIFilter-swift.class> chain, so you can save the cost of creating a new context.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)