# `GSLayer insertObject:inHintsAtIndex:`

*Instance Method*

Inserts a hint at an index.

## Declaration

```swift
func insertHint(_ hint: GSHint, at idx: UInt)
```

```objc
- (void) insertObject:(GSHint *) hint inHintsAtIndex:(NSUInteger) idx;
```

```python
insertObject_inHintsAtIndex_(hint: GSHint, idx: int)
```

## See Also

### Adding Hints

- [`GSLayer addHint:`](/Core/GlyphsCore/GSLayer/addHint:) — Adds a hint.
- [`GSLayer addHintCheck:`](/Core/GlyphsCore/GSLayer/addHintCheck:) — Adds a hint, checking for an existing path component hint at the same index path.

