---
title: variable
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/attributedstring/lineheight/variable
---

# variable

Variable line height based on font metrics.

## Declaration

```swift
static var variable: AttributedString.LineHeight { get }
```

## Discussion

Discussion Defines the line height based on the ascent and descent of the fonts used in each line.
