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

# replacing(target:)

Returns a new path with the target component replaced.

## Declaration

```swift
func replacing(target newTarget: USDLayer.Path) -> USDLayer.Path
```

## Parameters

- `newTarget`: The new target path.

## Return Value

Return Value A new path with the target component replaced.
