I have created a NSAttributedString
in this way
attribute3=[
NSForegroundColorAttributeName: innercircleColor,
NSFontAttributeName:UIFont.init(name: "Bariol", size: 18.0)!]
attriType=NSAttributedString.init(string: type, attributes: attribute3)
lblType.setAttributedText(attriType)
But according to my UILabel
size, in iPhone 5s this attributed text is coming outside the UILabel. How can I make the attributed text font size fit to the UILabel
width