---
title: "replacing(name:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdlayer/path/replacing(name:)"
---

# replacing(name:)

Returns a new path with the leaf name replaced.

## Declaration

```swift
func replacing(name newName: USDToken) -> USDLayer.Path
```

## Parameters

- `newName`: The new leaf name.

## Return Value

Return Value A new path with newName as its leaf.
