I really need the info that such a report contains Someone else sent me an Apple crash report and that let me refresh my understanding of this issue. Sadly, this is a known bug in iOS (r. 23592459) that can potentially affect anyone who constructs an NSAttributedString from HTML. There isn’t a good workaround for this other than to avoid this API altogether. My advice: If you’re displaying large chunks of complex HTML, use a WKWebView. If this HTML is highly constrained — perhaps you’re just using HTML as an easy way to transfer a constrained set of attributes, like bold and italics — create your own markup system that doesn’t relying on HTML. Or parse the HTML for just these attributes and use the result to create your attributed string. Alternatively, consider using the Markdown support we added in macOS 12 and iOS 15. For the details, watch WWDC 2021 Session 10109 What’s new in Foundation. IMPORTANT Foundation’s Markdown support is strongly integrated with SwiftUI but it’s not limited to SwiftUI
Topic:
App & System Services
SubTopic:
General
Tags: