# `GSGlyph.direction`

*Instance Property*

The writing direction associated with the glyph.

## Declaration

```swift
var direction: GSWritingDirection { get set }
```

```objc
@property (nonatomic) GSWritingDirection direction;
```

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

```python
pyobjc_instanceMethods.direction() -> GSWritingDirection
pyobjc_instanceMethods.setDirection_(direction: GSWritingDirection)
```

## Discussion

This value is usually supplied by the Glyph Info Database. Set [`GSGlyph.storeDirection`](/Core/GlyphsCore/GSGlyph/storeDirection) to `YES` to persist a glyph-local override instead of deriving it from the glyph name.

## See Also

### Direction

- [`GSGlyph.storeDirection`](/Core/GlyphsCore/GSGlyph/storeDirection) — Whether [`GSGlyph.direction`](/Core/GlyphsCore/GSGlyph/direction) is stored as glyph-local glyph info.

