# `GSLayoutManager inherentWritingDirectionOfLayers:`

*Type Method*

Performs a simplified implementation of the *Unicode Standard Annex #9 – Unicode Bidirectional Algorithm* based on the `direction` of the glyphs of the layers.

## Declaration

```swift
class func inherentWritingDirection(of layers: [GSLayer]!) -> GSWritingDirection
```

```objc
+ (GSWritingDirection) inherentWritingDirectionOfLayers:(NSArray<GSLayer *> *) layers;
```

```python
inherentWritingDirectionOfLayers_(layers: list[GSLayer]) -> GSWritingDirection
```

## Discussion

Returns `GSWritingDirectionBIDI` if there is no inherent writing direction.

> **Note**
> The same can be accomplished on a string using `-[NSString inherentWritingDirection]`.

