---
title: "applyingTransform(_:reverse:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsstring/applyingtransform(_:reverse:)"
---

# applyingTransform(_:reverse:)

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

## Declaration

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

## Discussion

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 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 that doesn’t have a corresponding StringTransform constant, create an instance of  NSMutableString and call the applyTransform(_:reverse:range:updatedRange:) method instead. .

## See Also

### Related Documentation

- [applyTransform(_:reverse:range:updatedRange:)](foundation/nsmutablestring/applytransform(_:reverse:range:updatedrange:).md)

### Transforming Strings

- [StringTransform](foundation/stringtransform.md)
