Contents

lineHeight(_:)

A modifier for the default line height in the view hierarchy.

Declaration

nonisolated func lineHeight(_ lineHeight: AttributedString.LineHeight?) -> some View

Discussion

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