---
title: "leading(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/font/leading(_:)"
---

# leading(_:)

Adjusts the line spacing of a font.

## Declaration

```swift
func leading(_ leading: Font.Leading) -> Font
```

## Parameters

- `leading`: The line spacing adjustment to apply.

## Return Value

Return Value A modified font that uses the specified line spacing, or the original font if it doesn’t support line spacing adjustments.

## Discussion

Discussion You can change a font’s line spacing while maintaining other characteristics of the font by applying this modifier. For example, you can decrease spacing of the body font by applying the Font.Leading.tight value to it: let myFont = Font.body.leading(.tight) The availability of leading adjustments depends on the font. For some fonts, the modifier has no effect and returns the original font.

## See Also

### Styling a font

- [bold()](swiftui/font/bold().md)
- [italic()](swiftui/font/italic().md)
- [monospaced()](swiftui/font/monospaced().md)
- [monospacedDigit()](swiftui/font/monospaceddigit().md)
- [smallCaps()](swiftui/font/smallcaps().md)
- [lowercaseSmallCaps()](swiftui/font/lowercasesmallcaps().md)
- [uppercaseSmallCaps()](swiftui/font/uppercasesmallcaps().md)
- [weight(_:)](swiftui/font/weight(_:).md)
- [width(_:)](swiftui/font/width(_:).md)
- [Font.Width](swiftui/font/width.md)
- [Font.Leading](swiftui/font/leading.md)
