<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/highlightShadowAdjust()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)highlightShadowAdjustFilter"
  },
  "title" : "highlightShadowAdjust()"
}
-->

# highlightShadowAdjust()

Adjusts the highlights of colors to reduce shadows.

```
class func highlightShadowAdjust() -> any CIFilter & CIHighlightShadowAdjust
```

## Return Value

The modified image.

## Discussion

This method applies the highlight-shadow adjust filter to an image. The effect adjusts shadows, while preserving spatial detail in the image.

The highlight-shadow adjust filter uses the following properties:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).
- `shadowAmount`: A `float` representing the amount of generated shadow as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `radius`: A `float` representing the radius of the shadow as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `highlightAmount`: A `float` representing the strength of the shadow as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.

The following code creates a filter that results in a brighter image with reduced shadows:

```swift
func highlightShadowAdjust(inputImage: CIImage) -> CIImage {
    let highlightShadowAdjustFilter = CIFilter.highlightShadowAdjust()
    highlightShadowAdjustFilter.inputImage = inputImage
    highlightShadowAdjustFilter.shadowAmount = 1
    return highlightShadowAdjustFilter.outputImage!
}
```

![Two pictures of a pink flower surrounded by foliage. The photo on the left shows a single flower photographed close up, in focus, with good light and no effects. In the photo on the right, the highlight shadow adjust filter is applied, resulting in a brighter image with a darker color on the pink flower.](images/com.apple.coreimage/media-3600012@2x.png)

---

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)