AndyDentFree / AndyDentFree/SpriteKittenly

Add a test converting HTML to attributed strings in StyledTextOverSK

Abierto
#1 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Swift
Estrellas
8
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.