An easier attribute text creator, use chain-syntax.
Support for iOS 8.0+, Base on Objective-C.
pod 'AXAttributedString'
- Download the AXAttributedString repository;
- Copy the AXAttributedString sub-folder into your Xcode project;
#import <AXAttributedString/AXAttributedString.h>
.
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
orhtmlText
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
- Email: [email protected]
- Wechat: arnold-xiao
I'm very happy that its helpful for you, can you give me a star? Thank you!