Skip to content

xiaochenghua/AXAttributedString

Repository files navigation

platform stars pod license

An easier attribute text creator, use chain-syntax.

Support for iOS 8.0+, Base on Objective-C.

Installation

pod 'AXAttributedString'

Manual

  1. Download the AXAttributedString repository;
  2. Copy the AXAttributedString sub-folder into your Xcode project;
  3. #import <AXAttributedString/AXAttributedString.h>.

Usage

Code_Example

Screenshot_iPhoneSE

Supported attribute list

  • text, Must be the first if need, NOT ALLOW the empty formatted substring.
  • htmlText, Must be the first if need, NOT ALLOW the empty formatted substring.

text or htmlText must be need one.

  • foregroundColor
  • backgroundColor
  • font
  • systemFontSize
  • underlineStyle
  • underlineColor
  • baselineOffset
  • strikethroughStyle
  • strikethroughColor
  • paragraphStyle
  • strokeColor
  • strokeWidth
  • attachment
  • linkUrl
  • linkString
  • ligature
  • kern
  • shadow
  • textEffect
  • obliqueness
  • expansion
  • writingDirection
  • verticalGlyphForm

Contact me

I'm very happy that its helpful for you, can you give me a star? Thank you!