---
title: "contains(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitraitoverrides-swift.struct/contains(_:)"
---

# contains(_:)

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

## Declaration

```swift
func contains(_ trait: UITrait) -> Bool
```
