On iOS 26, we have a new SwiftUI modifier, lineHeight(_:), for adjusting the distance between the baselines of two subsequent lines of text. There are a few options available in this new API, so I thought I would look through how they behave in practice: https://nilcoalescing.com/blog/AdjustingLineHeightInSwiftUIOniOS26
#iOSDev #SwiftUI
Adjusting line height in SwiftUI on iOS 26

iOS 26 introduces the lineHeight(_:) modifier and AttributedString.LineHeight attribute for adjusting vertical spacing between lines of text in SwiftUI.

Nil Coalescing