# `GSLayer addHintCheck:`

*Instance Method*

Adds a hint, checking for an existing path component hint at the same index path.

## Declaration

```swift
func addHintCheck(_ hint: GSHint)
```

```objc
- (void) addHintCheck:(GSHint *) hint;
```

```python
addHintCheck_(hint: GSHint)
```

## See Also

### Adding Hints

- [`GSLayer addHint:`](/Core/GlyphsCore/GSLayer/addHint:) — Adds a hint.
- [`GSLayer insertObject:inHintsAtIndex:`](/Core/GlyphsCore/GSLayer/insertObject:inHintsAtIndex:) — Inserts a hint at an index.

