The project aims to duplicate the methods present on Mac OSX which allow creation of NSAttributedString from HTML code on iOS.
The project covers two broad areas:
- Layouting - Interfacing with CoreText, generating attributed strings from HTML code
- User Interface - UI-related classes render these objects, specifically DTAttributedTextView, DTAttributedLabel and DTAttributedTextCell.
This is useful for drawing simple rich text like any HTML document without having to use a UIWebView. For text selection and highlighting (as you might need for an Editor or Reader) there is the commercial DTRichTextEditor component which can be purchased in the Cocoanetics Parts Store.
SDK for Apple
ADDED: Line truncation
ADDED: Minimum and maximum line heights
ADDED: Ability to change paragraph tag name
ADDED: Support for use in app extension
FIXED: Build error for integrating via sub-project
FIXED: CTLineUtils compiler warnings
FIXED: Setup Guide for sub-project integration
FIXED: Missing paragraph style for text attachments