Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 810 Bytes

File metadata and controls

22 lines (13 loc) · 810 Bytes

EzHTMLAS

Build Status Version Status [Platform](http://cocoapods.org/?q= EzHTMLAS)

html string to attributed string libs

for swift 4.2

swift 3.2 use 0.0.x

UILabel, UITextView, UIButton extention

you can use .HTML method. easy to use html like string to attributed string.

	let lbl = UILabel()
	lbl.numberOfLines = 0
	lbl.HTML = "<span align=center><font size=10 line-height=20>hello</font><br/><br/> <b>bold</b></span><i class=\"material-icons\">&#xe05c;</i></span><i class=\"material-icons 30 -10\">face</i>XXX"
	view.addSubview(lbl)