AndyDentFree / AndyDentFree/SpriteKittenly

Add a test converting HTML to attributed strings in StyledTextOverSK

オープン
#1 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Swift
スター
8
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

The HTML rendering is painfully slow.

Test using [init(html:baseURL:documentAttributes:)](https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-init) to create an attributed string from raw HTML. That would allow the attributed string to be serialised so the slowness is at creation time in HTML rather than on display. (Not relevant to this sample but highly relevant to the main use of these techniques).

Note the warnings in older versions in [this SO thread](https://stackoverflow.com/questions/4217820/convert-html-to-nsattributedstring-in-ios)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。