---
title: Text.LayoutKey
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/text/layoutkey
---

# Text.LayoutKey

A preference key that provides the Text.Layout values for all text views in the queried subtree.

## Declaration

```swift
struct LayoutKey
```

## Topics

### Structures

- [Text.LayoutKey.AnchoredLayout](swiftui/text/layoutkey/anchoredlayout.md)

## Relationships

### Conforms To

- [PreferenceKey](swiftui/preferencekey.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
