<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Font/leading(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4FontV7leadingyA2C7LeadingOF"
  },
  "title" : "leading(_:)"
}
-->

# leading(_:)

Adjusts the line spacing of a font.

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

## Parameters

`leading`

The line spacing adjustment to apply.

## Return Value

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

## 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`](/documentation/SwiftUI/Font/body) font by
applying the [`Font.Leading.tight`](/documentation/SwiftUI/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.

---

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)