<!--
{
  "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/softLight",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15GraphicsContextV9BlendModeV9softLightAEvpZ"
  },
  "title" : "softLight"
}
-->

# softLight

A mode that either darkens or lightens colors, depending on the
source image sample color.

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

## Discussion

If the source image sample color is
lighter than 50% gray, the background is lightened, similar
to dodging. If the source image sample color is darker than
50% gray, the background is darkened, similar to burning.
If the source image sample color is equal to 50% gray, the
background is not changed. Image samples that are equal to
pure black or pure white produce darker or lighter areas,
but do not result in pure black or white. The overall
effect is similar to what you’d achieve by shining a
diffuse 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)