baselineOffset(_:)
Sets the vertical offset for the text relative to its baseline in this view.
Declaration
nonisolated func baselineOffset(_ baselineOffset: CGFloat) -> some View
Parameters
- baselineOffset:
The amount to shift the text vertically (up or down) relative to its baseline.
Return Value
A view where text is above or below its baseline.