I found this code
let attrStr = try! NSAttributedString(
data: (text?.data(using: String.Encoding.unicode, allowLossyConversion: true)!)!,
options: [ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType],
documentAttributes: nil)
This returns an attributed string. But the font become too small and different than the one I want. How could I set a default font for that String?