---
title: "applying(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiimage/configuration-swift.class/applying(_:)"
---

# applying(_:)

Returns a configuration object that applies the specified configuration values on top of the current object’s values.

## Declaration

```swift
func applying(_ otherConfiguration: UIImage.Configuration?) -> Self
```

## Parameters

- `otherConfiguration`: The configuration attributes to apply over the current attributes. Values in this object take precedence over values in the image’s current configuration object.

## Mentioned in

Configuring and displaying symbol images in your UI

## Return Value

Return Value A configuration object with the specified image configuration attributes and merged traits.

## Discussion

Discussion This method merges the traits from otherConfiguration with the current object’s trait collection, giving precedence to traits in otherConfiguration unless the trait is unspecified. For image-specific traits, this method replaces the current image attributes with the attributes in otherConfiguration.

## See Also

### Modifying a configuration object

- [withTraitCollection(_:)](uikit/uiimage/configuration-swift.class/withtraitcollection(_:).md)
