4 ms·
Another alternative is FTCoreText ( https://github.com/FuerteInternational/FTCoreText https://github.com/FuerteInternational/FTCoreText ), which I've had good e
by algal000 14y ago
Another alternative is FTCoreText ( https://github.com/FuerteInternational/FTCoreText https://github.com/FuerteInternational/FTCoreText ), which I've had good experience with. Like AttributedMarkdown or Slash, you define NSAttributedString text styles in code. But there are (I believe) two differences which might be significant advantages in some cases.
First, FTCoreText doesn't predefine the tag vocabulary. You just associate your styles with tag names you define, and write your text in a pseudo-XML syntax using those tags. This is good for defining tags with semantics suited to your particular domain.
Second, FTCoreText doesn't use UIKit's NSAttributedString attributes. It uses the more powerful CoreText NSAttributedString attributes, which have been present since iOS5 at least. They are more powerful in one important way: only the CoreText string attributes support defining tab stops. This might seem like an irrelevant corner case, except that (as far as I know) this is the only way to properly define correct text indentation of text in bulleted list items.
- chrisdevereux 14y agoCouple of corrections about Slash: The tag vocabulary isn't really predefined. There is a default vocabulary, but it can be easily changed by passing in a different dictionary of tags. Also, the attributes aren't restricted to UIKit's NSAttributedString attributes (or not by Slash, anyway). You can provide whatever attributes you want, so long as the view you pass the attributed string to understands them.
- algal000 14y agoChris, thanks for the correction. That's very good to know. Sorry if I misrepresented the project!
- chrisdevereux 14y agoAh, no problem. It's helpful to know that the readme gives that impression.