<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/CoreTextAttributes/LineHeightAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation",
      "CoreText"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO8CoreTextE0dE10AttributesV010LineHeightB0O"
  },
  "title" : "AttributeScopes.CoreTextAttributes.LineHeightAttribute"
}
-->

# AttributeScopes.CoreTextAttributes.LineHeightAttribute

An attribute for defining the height of lines in a text.

```
@frozen enum LineHeightAttribute
```

## Overview> Important: Note that this attribute is not for usage with CoreText
> APIs directly, but exposed to give other frameworks common vocabulary to
> express the line height concept as defined by CoreText in Swift. For
> more details, see ``doc://com.apple.foundation/documentation/Foundation/AttributeScopes/CoreTextAttributes``.

## Relationships

### Conforms To

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

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

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

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

---

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)