Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 626 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 626 Bytes

IconLabelView

A UILabel embedded with small icon image.

Usage

You can use the IconLabelView two ways,

Interface Builder

Just add a UIView into your .storyboard then set the custom class to IconLabelView

Programmatically

let iconLabelView = IconLabelView(frame: CGRect(x: 20, y: 100, width: 300, height: 35))
iconLabelView.text = "justARandomString"
iconLabelView.textColor = UIColor.orangeColor()
iconLabelView.iconImage = UIImage(named: "randomImage")!

self.view.addSubview(iconLabelView)