---
title: "appearance(for:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uiappearance/appearance(for:)"
---

# appearance(for:)

Returns the appearance proxy for the receiver that has the passed trait collection.

## Declaration

```swift
static func appearance(for trait: UITraitCollection) -> Self
```

## Parameters

- `trait`: The trait collection used for matching.

## Return Value

Return Value The appearance proxy for the receiver.

## See Also

### Working with the appearance proxy

- [appearance()](uikit/uiappearance/appearance().md)
- [appearance(whenContainedInInstancesOf:)](uikit/uiappearance/appearance(whencontainedininstancesof:).md)
- [appearance(for:whenContainedInInstancesOf:)](uikit/uiappearance/appearance(for:whencontainedininstancesof:).md)
