I have a problem with the combination of two strings:
let finalMutableString = NSMutableAttributedString()
let attributedDot = NSAttributedString(string: " ●", attributes: [NSFontAttributeName:UIFont.systemFont(ofSize: 7)])
let firstPartString = NSAttributedString(string: "Sample text", attributes: [NSFontAttributeName:UIFont.systemFont(ofSize: 17)])
finalMutableString.append(attributedDot)
finalMutableString.append(firstPartString)
label.attributedText = finalMutableString
And whole text has font size 7.0
not only attributedDot
.
Why is this how it behaves? Text's should have different sizes