Swift truncated label alternative text

Viewed 846

I have two labels in a horizontal stack view controller:

labelA.text = "This is text number A"
labelB.text = "This is text number B"

they are being truncated:

[This is... This is...]

Is there a way to provide the labels with alternate texts to display if it would truncate the original one, like

labelA.alternateText = "A"
labelB.alternateText = "B"

so it displays

[A B ]

but would still display the full text for both labels if it could

1 Answers
Related