# `GSComponent.component`

*Instance Property*

The base glyph resolved from [`GSComponent.componentName`](/Core/GlyphsCore/GSComponent/componentName) in the font of the containing layer.

## Declaration

```swift
unowned(unsafe) var component: GSGlyph? { get }
```

```objc
@property (unsafe_unretained, readonly) GSGlyph * component;
```

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

```python
pyobjc_instanceMethods.component() -> GSGlyph
```

## Discussion

Returns `nil` when the component has no containing font or the font has no glyph with the referenced name. Set [`GSComponent.componentName`](/Core/GlyphsCore/GSComponent/componentName) to change the base glyph.

## See Also

### Base Glyph

- [`GSComponent.componentName`](/Core/GlyphsCore/GSComponent/componentName) — The name of the referenced base glyph.
- [`GSComponent updateComponentGlyph`](/Core/GlyphsCore/GSComponent/updateComponentGlyph) — Resolves the base glyph and updates the reference when the glyph was renamed.
- [`GSComponent updateComponentGlyphDontNotify`](/Core/GlyphsCore/GSComponent/updateComponentGlyphDontNotify) — Resolves the base glyph without registering a change to the component.
- [`GSComponent updateComponentGlyphFast`](/Core/GlyphsCore/GSComponent/updateComponentGlyphFast) — Resolves the base glyph without undo or change notifications.

