<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/insertingIntermediate(cache:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)imageByInsertingIntermediate:"
  },
  "title" : "insertingIntermediate(cache:)"
}
-->

# insertingIntermediate(cache:)

Create an image that inserts a intermediate that is cacheable.

```
func insertingIntermediate(cache: Bool) -> CIImage
```

## Parameters

`cache`

Controls if Core Image caches the returned image. If `true`, this intermediate will be cacheable even if [`cacheIntermediates`](/documentation/CoreImage/CIContextOption/cacheIntermediates) is false. If `false`, the intermediate will be not be cached if [`cacheIntermediates`](/documentation/CoreImage/CIContextOption/cacheIntermediates) is false.

## Return Value

An autoreleased [`CIImage`](/documentation/CoreImage/CIImage).

## Discussion

---

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)