# `GSLayer index(of:)`

*Instance Method*

The index of a hint, or `nil` when the hint is not in the layer.

## Declaration

```swift
func index(of hint: GSHint) -> Int?
```

## See Also

### Hints

- [`GSLayer.hints`](/Core/GlyphsCore/GSLayer/hints) — Layer hints.
- [`GSLayer.hintsFast`](/Core/GlyphsCore/GSLayer/hintsFast) — Low-level hint storage access.
- [`GSLayer countOfHints`](/Core/GlyphsCore/GSLayer/countOfHints) — The number of stored hints.
- [`GSLayer countOfPostScriptHints`](/Core/GlyphsCore/GSLayer/countOfPostScriptHints) — The number of PostScript hints.
- [`GSLayer hintWithKey:`](/Core/GlyphsCore/GSLayer/hintWithKey:) — The hint for a stable hint key.
- [`GSLayer objectInHintsAtIndex:`](/Core/GlyphsCore/GSLayer/objectInHintsAtIndex:) — The hint at an index.

