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

# init(_:)

Narrows an untyped USDLayer.Spec to a variant set spec.

## Declaration

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

## Parameters

- `spec`: The spec to narrow.

## Return Value

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