<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EnvironmentValues/colorSchemeContrast",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17EnvironmentValuesV19colorSchemeContrastAA05ColorfG0Ovp"
  },
  "title" : "colorSchemeContrast"
}
-->

# colorSchemeContrast

The contrast associated with the color scheme of this environment.

```
var colorSchemeContrast: ColorSchemeContrast { get }
```

## Discussion

Read this environment value from within a view to find out if SwiftUI
is currently displaying the view using [`ColorSchemeContrast.standard`](/documentation/SwiftUI/ColorSchemeContrast/standard)
or [`ColorSchemeContrast.increased`](/documentation/SwiftUI/ColorSchemeContrast/increased) contrast. The value that you read
depends entirely on user settings, and you can’t change it.

```
@Environment(\.colorSchemeContrast) private var colorSchemeContrast

var body: some View {
    Text(colorSchemeContrast == .standard ? "Standard" : "Increased")
}
```

When adjusting your app’s user interface to match the contrast,
consider also checking the [`colorScheme`](/documentation/SwiftUI/EnvironmentValues/colorScheme) property
to find out if SwiftUI is displaying the view with a light or dark
appearance. For information, see
<doc://com.apple.documentation/design/Human-Interface-Guidelines/accessibility>
in the Human Interface Guidelines.

> Note: If you only need to provide different colors or
> images for different color scheme and contrast settings, do that in
> your app’s Asset Catalog. See
> <doc://com.apple.documentation/documentation/Xcode/asset-management>.

---

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)