Powerful IOS Rich text editing and display frame: Yytext

Source: Internet
Author: User

Powerful IOS Rich text editing and display frame.
(This project is one of the Yykit components)

Characteristics
    • API compatible with UILabel and Uitextview
    • Supports high-performance asynchronous typesetting and rendering
    • Extended the properties of Coretext to support more text effects
    • Supports UIImage, UIView, and calayer as graphic elements
    • Support for adding custom-styled, clickable text highlighting ranges
    • Support for custom text parsing (built-in simple markdown/expression parsing)
    • Support for text container path, internal blank path control
    • Support text vertical layout, can be used to edit and display CJK text
    • Support for image and Rich text copy and paste
    • Support for rich-text placeholders when editing text
    • Support for customizing the keyboard view
    • Control of undo and redo Times
    • Serialization and deserialization support for rich text
    • Multi-lingual support, VoiceOver support
    • All code has documentation comments
Architecture

Yytext and Textkit Architecture comparison

Text properties Yytext native supported properties
Demo Attribute Name Class
Textbackedstring Yytextbackedstring
Textbinding Yytextbinding
Textshadow Yytextshadow
Textinnershadow Yytextshadow
Textunderline Yytextdecoration
Textstrickthrough Yytextdecoration
Textborder Yytextborder
Textbackgroundborder Yytextborder
Textblockborder Yytextborder
Textattachment Yytextattachment
Texthighlight Yytexthighlight
Textglyphtransform Nsvalue (Cgaffinetransform)
Coretext Properties Supported by Yytext
Demo Attribute Name Class
Font Uifont (CTFONTREF)
Kern NSNumber
Strokewidth NSNumber
Strokecolor Cgcolorref
Shadow Nsshadow
Ligature NSNumber
Verticalglyphform NSNumber (BOOL)
Writingdirection Nsarray (NSNumber)
Rundelegate Ctrundelegateref
TextAlignment Nsparagraphstyle
(nstextalignment)
Linebreakmode Nsparagraphstyle
(Nslinebreakmode)
LineSpacing Nsparagraphstyle
(CGFloat)
Paragraphspacing
Paragraphspacingbefore
Nsparagraphstyle
(CGFloat)
Firstlineheadindent Nsparagraphstyle
(CGFloat)
Headindent Nsparagraphstyle
(CGFloat)
Tailindent Nsparagraphstyle
(CGFloat)
Minimumlineheight Nsparagraphstyle
(CGFloat)
Maximumlineheight Nsparagraphstyle
(CGFloat)
Lineheightmultiple Nsparagraphstyle
(CGFloat)
Basewritingdirection Nsparagraphstyle
(nswritingdirection)
Defaulttabinterval
TabStops
Nsparagraphstyle
Cgfloat/nsarray (Nstexttab)
Usage Basic usage
Yylabel (consistent with UILabel usage) yylabel *label = [Yylabel new];label.frame = ... Label.font = ... label.textcolor = ... label.text Alignment = ... Label.linebreakmode = ... label.numberoflines = ... label.text = ...//Yytextview (consistent with Uitextview usage) YYTEXTVI EW *textview = [Yytextview new];textview.frame = ... Textview.font = ... textview.textcolor = ... Textview.datadetectortypes = ... Textview.placeholdertext = ... textview.placeholdertextcolor = ... textView.delegate = ...

Project home: http://www.open-open.com/lib/view/home/1447216582147

ibireme/yytextwatch4750fork752

Item Description: Powerful text framework for IOS to display and edit rich text. -View More ...


List of issues:
#309 Set line spacing is not valid when all Yylabel are emoji expressions by WUSW 2016-05-06
#308 Yytextborder Display Incomplete by Baecheung 2016-05-06
#307 Can not find the Yytextview on [Uiresponder Currentfirstresponder]? by Pamredrum 2016-05-07
#306 No Highlight Status by Medisean 2016-05-06
#305 Yylabel attributed text default linespacing is not Zero by Tobatha 2016-05-05

main Branch code update time: 2016-04-21

Development language: Objective-c

Download zip

Powerful IOS Rich text editing and display frame: Yytext

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.