A workaround was found for our specific scenario (we do not specify a style with UILabel properties, but all with NSAttributedString attributes):
/// This UILabel subclass accomodates conditional fix for NSAttributedString rendering broken by Apple in iOS 10.3 final class PriceLabel: UILabel { override func drawText(in rect: CGRect) { guard let attributedText = attributedText else { super.drawText(in: rect) return } if
NOTE. If you mix UILabel style properties with NSAttributedString attributes, you should consider creating a new attribute string before rendering, apply the UILabel style to it, and then reapply all attributedText attributedText to it.
rshev Mar 28 '17 at 16:11 2017-03-28 16:11
source share