---
title: "init(_:)"
framework: usdkit
role: symbol
role_heading: Initializer
path: "usdkit/usdprim/relationship/spec/init(_:)"
---

# init(_:)

Narrows an untyped USDLayer.Spec to a relationship spec.

## Declaration

```swift
init?(_ spec: USDLayer.Spec)
```

## Parameters

- `spec`: The spec to narrow.

## Return Value

Return Value A relationship spec, or nil if spec is not a relationship spec.
