NSAttributedString tail truncation in UILabel

Following also works irrespective of using AttributedText or normal text.
Make sure to add the below line after setting the AttributedText and font to the label:

label.lineBreakMode = .byTruncatingTail

I had this problem and fixed it by adding a NSParagraphStyle specifying the desired line break mode:

    //assuming myString is an NSMutableAttributedString
    let paragraphStyle = NSMutableParagraphStyle()
    paragraphStyle.lineBreakMode = .byTruncatingTail

    let range = NSRange(location: 0, length: myString.mutableString.length)
    myString.addAttribute(NSParagraphStyleAttributeName, value: paragraphStyle, range: range)

See Word wrap for NSMutableAttributedString for further reference.