---
title: lineHeight
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/environmentvalues/lineheight
---

# lineHeight

The default line height for text influenced by this environment.

## Declaration

```swift
var lineHeight: AttributedString.LineHeight? { get set }
```

## Discussion

Discussion The default value is nil. In that case, SwiftUI automatically chooses an appropriate line height setting for each context.
