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