<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManager/notShownAttribute(forGlyphAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(im)notShownAttributeForGlyphAtIndex:"
  },
  "title" : "notShownAttribute(forGlyphAt:)"
}
-->

# notShownAttribute(forGlyphAt:)

Indicates whether the glyph at the specified index has a visible representation.

```
func notShownAttribute(forGlyphAt glyphIndex: Int) -> Bool
```

## Parameters

`glyphIndex`

Index of the glyph.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the glyph at `glyphIndex` is not shown; otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Some glyphs are not shown.  For example, a tab, newline, or attachment glyph is not shown; it just affects the layout of following glyphs or locates the attachment graphic. Space characters, however, typically are shown as glyphs with a displacement, although they leave no visible marks.

This method causes glyph generation and layout for the line fragment containing the specified glyph, or if noncontiguous layout is not enabled, up to and including that line fragment.

Raises an `NSRangeException` if `glyphIndex` is out of bounds.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)