Skip to content

ghysrc/EasyAttributedString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyAttributedString

screenshot

How to use

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()

About

An easy to use AttributedString

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages