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

# relative(to:)

Returns this path made relative to the given anchor.

## Declaration

```swift
func relative(to anchor: USDLayer.Path) -> USDLayer.Path
```

## Parameters

- `anchor`: The path to make this path relative to.

## Return Value

Return Value A relative version of this path.
