<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "tvOS: 17.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITraitOverrides-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit16UITraitOverridesV"
  },
  "title" : "UITraitOverrides"
}
-->

# UITraitOverrides

A mutable container of traits you use to set trait changes for an object and its descendants.

```
struct UITraitOverrides
```

## Topics

### Inspecting overrides

[`contains(_:)`](/documentation/UIKit/UITraitOverrides-swift.struct/contains(_:))

Returns a Boolean value that indicates whether the trait overrides contain a change for the trait you provide.

### Removing overrides

[`remove(_:)`](/documentation/UIKit/UITraitOverrides-swift.struct/remove(_:))

Removes the change for the trait you provide.

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`UIMutableTraits-13ja5`](/documentation/UIKit/UIMutableTraits-13ja5)

[`CustomReflectable`](/documentation/Swift/CustomReflectable)

[`Copyable`](/documentation/Swift/Copyable)

---

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)