# `GSLayer.parent`

*Instance Property*

The glyph containing the layer, or `nil` while the layer is detached.

## Declaration

```swift
weak var parent: GSGlyph? { get set }
```

```objc
@property (nonatomic, weak) GSGlyph * parent;
```

[See also `parent` in the Python API](https://docu.glyphsapp.com/#GSLayer.parent)

```python
pyobjc_instanceMethods.parent() -> GSGlyph
pyobjc_instanceMethods.setParent_(parent: GSGlyph)
```

## Discussion

Setting this property does not add the layer to the glyph.

## See Also

### Ownership

- [`GSLayer.glyph`](/Core/GlyphsCore/GSLayer/glyph) — The glyph containing the layer, or `nil` while the layer is detached.
- [`GSLayer.font`](/Core/GlyphsCore/GSLayer/font) — The font containing the layer through its glyph, or `nil` while the layer is detached.

