<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GraphicsContext/BlendMode-swift.struct/hardLight",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15GraphicsContextV9BlendModeV9hardLightAEvpZ"
  },
  "title" : "hardLight"
}
-->

# hardLight

A mode that either multiplies or screens colors, depending on the
source image sample color.

```
static var hardLight: GraphicsContext.BlendMode { get }
```

## Discussion

If the source image sample color
is lighter than 50% gray, the background is lightened,
similar to screening. If the source image sample color is
darker than 50% gray, the background is darkened, similar
to multiplying. If the source image sample color is equal
to 50% gray, the source image is not changed. Image samples
that are equal to pure black or pure white result in pure
black or white. The overall effect is similar to what you’d
achieve by shining a harsh spotlight on the source image.
Use this to add highlights to a scene.

---

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)