How can make a UILabel look this way in Xcode12?
override func viewDidLoad() {
super.viewDidLoad()
let text = "1:47PM"
if let regularFont = UIFont(name: "Helvetica", size: 20.0), let subscriptFont = UIFont(name: "TamilSangamMN", size: 12.0) {
let attString:NSMutableAttributedString = NSMutableAttributedString(string: text, attributes: [.font: regularFont])
attString.setAttributes([.font: subscriptFont, .baselineOffset: 6], range: NSRange(location: text.count - 2, length: 2))
label.attributedText = attString
}
}