github.com/wess/veneer

A simple library for building attributed strings, for a more civilized age.


License
MIT

Documentation

Veneer

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.


Installation:

pod "Veneer"

Usage:


 let attrString = NSAttributedString(string: "Hello World") { make in
                    make.Font(UIFont.boldSystemFontOfSize(32.0))
                    make.BackgroundColor(.redColor())
                    make.Color(.whiteColor())
                  }

  someLabel.attributedText = attrString

Author:

Wess Cope