TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✓ |
Maintained by Wess Cope.
A simple library for building attributed strings, for a more civilized age.
Veneer was created to make creating attributed strings easier to read and write. Taking inspiration from SnapKit, Veneer uses blocks to construct the attributes and produce an NSAttributedString.
pod "Veneer"
let attrString = NSAttributedString(string: "Hello World") { make in
make.font(UIFont.boldSystemFontOfSize(32.0))
make.backgroundColor(.red
make.color(.white)
}
someLabel.attributedText = attrString
Wess Cope