ibireme /YYText

Powerful text framework for iOS to display and edit rich text.

★ 8,859⑂ 1,846👁 201⑃ 69● 952▤ 7
Objective-CMITCreated 2015-11-05
Download: Bug fixesBug-1.0.6 ↓1.0.62016-09-13
+0
Daily
8,859
stars
1,846
forks
201
watchers
69
prs
952
issues
7
releases

README

YYText
==============
 
 
 
 
 


Powerful text framework for iOS to display and edit rich text.
(It's a component of YYKit)


Features
==============

- UILabel and UITextView API compatible
- High performance asynchronous text layout and rendering
- Extended CoreText attributes with more text effects
- Text attachments with UIImage, UIView and CALayer
- Custom highlight text range to allow user interact with
- Text parser support (built in markdown/emoticon parser)
- Text container path and exclusion paths support
- Vertical form layout support (for CJK text)
- Image and attributed text copy/paste support
- Attributed text placeholder support
- Custom keyboard view support
- Undo and redo control
- Attributed text archiver and unarchiver support
- Multi-language and VoiceOver support
- Interface Builder support
- Fully documented


Architecture
==============
YYText vs TextKit




Text Attributes
==============

 YYText supported attributes

  
    
      Demo
      Attribute Name
      Class
    
  
  
    
      
      TextAttachment
      YYTextAttachment
    
    
      
      TextHighlight
      YYTextHighlight
    
    
      
      TextBinding
      YYTextBinding
    
    
      
      TextShadowTextInnerShadow
      YYTextShadow
    
    
      
      TextBorder
      YYTextBorder
    
    
      
      TextBackgroundBorder
      YYTextBorder
    
    
      
      TextBlockBorder
      YYTextBorder
    
    
      
      TextGlyphTransform
       NSValue(CGAffineTransform)
    
    
      
      TextUnderline
      YYTextDecoration
    
    
      
      TextStrickthrough
      YYTextDecoration
    
    
      
      TextBackedString
      YYTextBackedString
    
  


 CoreText attributes which is 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) 
    
    
      

Top issues

Latest release

Bug fixes 1.0.6 2016-09-13
- iOS 7 compatible when set font name with InterfaceBuilder: 404
- iOS 10 compatible for text layout: 459
- Fix text border draw defect when the border is out of the view's bounds: 341 
- Fix incorrect state when resize vertical form textview: 483
- Fix potential crash when get attribute from NSAttributedString with invalid index.
- Fix Xcode8 warnings

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON