<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSString/applyingTransform(_:reverse:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSString(im)stringByApplyingTransform:reverse:"
  },
  "title" : "applyingTransform(_:reverse:)"
}
-->

# applyingTransform(_:reverse:)

Returns a new string by applying a specified transform to the string.

```
func applyingTransform(_ transform: StringTransform, reverse: Bool) -> String?
```

## Discussion

You can use this method to, for example, transliterate text from one script to another, strip diacritics or combining marks, and get the unicode names of characters.

> Note:
> The constants defined by the ``doc://com.apple.foundation/documentation/Foundation/StringTransform`` type offer a subset of the functionality provided by the underlying ICU transform functionality. To apply an ICU transform defined in the [ICU User Guide](http://userguide.icu-project.org/transforms/general) that doesn’t have a corresponding ``doc://com.apple.foundation/documentation/Foundation/StringTransform`` constant, create an instance of  ``doc://com.apple.foundation/documentation/Foundation/NSMutableString`` and call the ``doc://com.apple.foundation/documentation/Foundation/NSMutableString/applyTransform(_:reverse:range:updatedRange:)`` method instead.

.

## See Also

[`applyTransform(_:reverse:range:updatedRange:)`](/documentation/Foundation/NSMutableString/applyTransform(_:reverse:range:updatedRange:))

Transliterates the receiver by applying a specified ICU string transform.



---

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)