One another option would be converting NSAttributedString to String and you can use SwiftUI Text.
(detailStr)
String+Extension
extension String {
func htmlToString() -> String {
return try! NSAttributedString(data: self.data(using: .utf8)!,
options: [.documentType: NSAttributedString.DocumentType.html],
documentAttributes: nil).string
}
}
SwiftUI
Text(str.htmlToString())
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: