---
title: "appendingPathComponent(_:conformingTo:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsstring/appendingpathcomponent(_:conformingto:)"
---

# appendingPathComponent(_:conformingTo:)

## Declaration

```swift
func appendingPathComponent(_ partialName: String, conformingTo contentType: UTType) -> String
```
