---
title: "init(layer:primPath:)"
framework: usdkit
role: symbol
role_heading: Initializer
path: "usdkit/usdprim/spec/init(layer:primpath:)"
---

# init(layer:primPath:)

Creates a prim spec at the given path in the layer, authoring intermediate ancestor prim specs as overs where needed.

## Declaration

```swift
init?(layer: USDLayer, primPath: USDLayer.Path)
```
