Contents

accessibilityIgnoresInvertColors(_:)

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

Declaration

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.

See Also

Managing color