Using truncationMode

Hi,

The example that Apple shows in link below doesn't show how truncationMode works, because the text get truncated anyway when its length it more than frame height so what's the use of truncationMode ?

https://developer.apple.com/documentation/swiftui/view/truncationmode(_:)

-- Kind Regards

I don't understand your question.

truncationMode lets you define how truncation is done: at the end (tail, in the middle or at the beginning (head).

If not defined, I think default is tail (not sure).

Using truncationMode
 
 
Q