<!--
{
  "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/ColorSchemeContrast",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19ColorSchemeContrastO"
  },
  "title" : "ColorSchemeContrast"
}
-->

# ColorSchemeContrast

The contrast between the app’s foreground and background colors.

```
enum ColorSchemeContrast
```

## Overview

You receive a contrast value when you read the
[`colorSchemeContrast`](/documentation/SwiftUI/EnvironmentValues/colorSchemeContrast) environment value. The value
tells you if a standard or increased contrast currently applies to the view.
SwiftUI updates the value whenever the contrast changes, and redraws
views that depend on the value. For example, the following [`Text`](/documentation/SwiftUI/Text) view
automatically updates when the user enables increased contrast:

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

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

The user sets the contrast by selecting the Increase Contrast option in
Accessibility > Display in System Preferences on macOS, or
Accessibility > Display & Text Size in the Settings app on iOS.
Your app can’t override the user’s choice. For
information about using color and contrast in your app, see
<doc://com.apple.documentation/design/Human-Interface-Guidelines/accessibility>
in the Human Interface Guidelines.

## Topics

### Getting contrast options

[`ColorSchemeContrast.standard`](/documentation/SwiftUI/ColorSchemeContrast/standard)

SwiftUI displays views with standard contrast between the app’s
foreground and background colors.

[`ColorSchemeContrast.increased`](/documentation/SwiftUI/ColorSchemeContrast/increased)

SwiftUI displays views with increased contrast between the app’s
foreground and background colors.

### Creating a color scheme contrast

[`init(_:)`](/documentation/SwiftUI/ColorSchemeContrast/init(_:))

Creates a contrast from its accessibility contrast equivalent.



---

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)