title: How to set line height for a single line text in SwiftUI?
body: <p>Currently, I have been using <code>.lineSpacing(...)</code>, but this <strong>only works for multi-line text</strong>. </p>
  
  <pre><code>/// Sets the amount of space between lines of text in this view.
  ///
  /// - Parameter lineSpacing: The amount of space between the bottom of one
  ///   line and the top of the next line.
  @inlinable public func lineSpacing(_ lineSpacing: CGFloat) -&gt; some View
  </code></pre>
  
  <p>What this means is that it's harder for me to translate fonts exactly from sketch/figma, and I need to play around with the padding to get it right. Here is an example that shows this:</p>
  
  <pre><code>VStack {
      // Line spacing is ignored.
      Text("Hello, World!")
          .background(Color.green)
          .lineSpacing(50)
  
      Spacer()
  
      // Line spacing is correct.
      Text("Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups.")
          .background(Color.green)
          .lineSpacing(50)
  }
  </code></pre>