AndyDentFree / AndyDentFree/SpriteKittenly

Add a test converting HTML to attributed strings in StyledTextOverSK

Đang mở
#1 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Swift
Star
8
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.