https://github.com/kindraywind/iconlabelview
A UILabel embedded with small icon image.
https://github.com/kindraywind/iconlabelview
Last synced: 3 months ago
JSON representation
A UILabel embedded with small icon image.
- Host: GitHub
- URL: https://github.com/kindraywind/iconlabelview
- Owner: kindraywind
- License: mit
- Created: 2015-07-07T17:05:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-07T17:37:00.000Z (almost 10 years ago)
- Last Synced: 2025-03-24T03:53:54.303Z (3 months ago)
- Language: Swift
- Size: 199 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
``` swift
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)
```