Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 732 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 732 Bytes

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(.red
                    make.color(.white)
                  }

  someLabel.attributedText = attrString

Author:

Wess Cope