<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/SwiftUIAttributes/AdaptiveImageGlyphAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO7SwiftUIE0D12UIAttributesV018AdaptiveImageGlyphB0O"
  },
  "title" : "AttributeScopes.SwiftUIAttributes.AdaptiveImageGlyphAttribute"
}
-->

# AttributeScopes.SwiftUIAttributes.AdaptiveImageGlyphAttribute

A key for an adaptive image glyph inside a run of attributed text.

```
@frozen enum AdaptiveImageGlyphAttribute
```

## Overview

An adaptive image glyph is an inline image that flows with text and
scales with the surrounding font, such as a Genmoji or a sticker that
someone inserts from the keyboard. A text view draws these glyphs in
place, so a string that people edit keeps them where they put them:

```
TextField("Message", text: $message)

Text(message)
```

SwiftUI sets this key as people insert glyphs, so you rarely set it
yourself. Read it when you need to find the glyphs in a string, for
example to strip them before you store the text somewhere that cannot
represent them.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`AttributedStringKey`](/documentation/Foundation/AttributedStringKey)

[`DecodableAttributedStringKey`](/documentation/Foundation/DecodableAttributedStringKey)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`EncodableAttributedStringKey`](/documentation/Foundation/EncodableAttributedStringKey)

---

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)