<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/accessibilityIgnoresInvertColors(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE32accessibilityIgnoresInvertColorsyQrSbF"
  },
  "title" : "accessibilityIgnoresInvertColors(_:)"
}
-->

# accessibilityIgnoresInvertColors(_:)

Sets whether this view should ignore the system Smart Invert setting.

```
nonisolated func accessibilityIgnoresInvertColors(_ active: Bool = true) -> some View
```

## Parameters

`active`

A true value ignores the system Smart Invert
setting. A false value follows the system setting.

## Discussion

Use this modifier to suppress Smart Invert in a view that shouldn’t
be inverted. Or pass an `active` argument of `false` to begin following
the Smart Invert setting again when it was previously disabled.

---

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)