I am trying to convert HTML to attributed string so used this
try NSAttributedString(data: data, options: [.documentType: NSAttributedString.DocumentType.html, .characterEncoding: String.Encoding.utf8.rawValue], documentAttributes: nil)
But, am getting memory leak in this single line and due to memory leak app crashes.. Any solution for this??