let str = EasyAttributedStringBuilder(str: "Some Text")
str.firstCharacter().setFont(UIFont.systemFontOfSize(22)).setTextColor(UIColor.blueColor())
str.allRange().setBackgroundColor(UIColor.orangeColor()).setTextColor(UIColor.whiteColor())
str.rangeOfString("kern").setKern(10)
str.rangeWith(7, length: 4).setBaselineOffset(-5)
cell?.textLabel?.attributedText = str.build()
-
Notifications
You must be signed in to change notification settings - Fork 0
An easy to use AttributedString
License
ghysrc/EasyAttributedString
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An easy to use AttributedString
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published