Actually it is even enough to add baselineOffset and set it to 0
attributedString.addAttribute(NSAttributedString.Key.baselineOffset, value: 0, range: NSMakeRange(0,length))
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: