---
title: "appendingPathExtension(for:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsstring/appendingpathextension(for:)"
---

# appendingPathExtension(for:)

## Declaration

```swift
func appendingPathExtension(for contentType: UTType) -> String
```
