<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImage/Configuration-swift.class/applying(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImageConfiguration(im)configurationByApplyingConfiguration:"
  },
  "title" : "applying(_:)"
}
-->

# applying(_:)

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

```
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.

## Return Value

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

## 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`.

---

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)