AndyDentFree / AndyDentFree/SpriteKittenly

Add a test converting HTML to attributed strings in StyledTextOverSK

Ouverte
#1 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Swift
Étoiles
8
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.