Contents

tracking(_:)

Sets the tracking for the text in this view.

Declaration

nonisolated func tracking(_ tracking: CGFloat) -> some View

Parameters

  • tracking:

    The amount of additional space, in points, that the view should add to each character cluster after layout. Value of 0 sets the tracking to the system default value.

Return Value

A view where text has the specified amount of tracking.

See Also

Managing text layout