---
title: "isValidGlyphIndex(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nslayoutmanager/isvalidglyphindex(_:)"
---

# isValidGlyphIndex(_:)

Indicates whether the specified index refers to a valid glyph.

## Declaration

```swift
func isValidGlyphIndex(_ glyphIndex: Int) -> Bool
```

## Parameters

- `glyphIndex`: The index of a glyph in the receiver.

## Return Value

Return Value true if the specified glyphIndex refers to a valid glyph, otherwise false.

## See Also

### Accessing glyphs

- [getGlyphs(in:glyphs:properties:characterIndexes:bidiLevels:)](uikit/nslayoutmanager/getglyphs(in:glyphs:properties:characterindexes:bidilevels:).md)
- [cgGlyph(at:)](uikit/nslayoutmanager/cgglyph(at:).md)
- [cgGlyph(at:isValidIndex:)](uikit/nslayoutmanager/cgglyph(at:isvalidindex:).md)
- [setGlyphs(_:properties:characterIndexes:font:forGlyphRange:)](uikit/nslayoutmanager/setglyphs(_:properties:characterindexes:font:forglyphrange:).md)
- [characterIndexForGlyph(at:)](uikit/nslayoutmanager/characterindexforglyph(at:).md)
- [glyphIndexForCharacter(at:)](uikit/nslayoutmanager/glyphindexforcharacter(at:).md)
- [numberOfGlyphs](uikit/nslayoutmanager/numberofglyphs.md)
- [propertyForGlyph(at:)](uikit/nslayoutmanager/propertyforglyph(at:).md)
- [NSLayoutManager.GlyphProperty](uikit/nslayoutmanager/glyphproperty.md)
