---
title: containerTraitCollection
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisheetpresentationcontrollerdetentresolutioncontext/containertraitcollection
---

# containerTraitCollection

The trait collection of the sheet’s container view.

## Declaration

```swift
var containerTraitCollection: UITraitCollection { get }
```

## Discussion

Discussion The value of this property is the same as the window’s traitCollection, and doesn’t include overrides from the sheet’s overrideTraitCollection.

## See Also

### Accessing the properties of the context

- [maximumDetentValue](uikit/uisheetpresentationcontrollerdetentresolutioncontext/maximumdetentvalue.md)
