---
title: "accessibilityIgnoresInvertColors(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/accessibilityignoresinvertcolors(_:)"
---

# accessibilityIgnoresInvertColors(_:)

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

## Declaration

```swift
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

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.

## See Also

### Managing color

- [accessibilityInvertColors](swiftui/environmentvalues/accessibilityinvertcolors.md)
- [accessibilityDifferentiateWithoutColor](swiftui/environmentvalues/accessibilitydifferentiatewithoutcolor.md)
