Updated Readme

Added note about why the prefixing has been changed and how Snappy is not compatible from Objective-C
This commit is contained in:
Robert Payne 2014-07-30 00:02:27 +12:00
parent 4303bd6037
commit 7ba2c3f99f
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
Snappy is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Snappy has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable. Snappy is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Snappy has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable.
Snappy supports iOS and Mac OS X. Snappy supports iOS and Mac OS X.
> Snappy uses some Swift only features like function overloading it cannot be used from Objective-C. Because of this weve chosen to swap prefixes from Masonrys `mas_` to `snp_` so you can use both Masonry and Snappy in the same project.
## What's wrong with NSLayoutConstraints? ## What's wrong with NSLayoutConstraints?
Under the hood Auto Layout is a powerful and flexible way of organising and laying out your views. However creating constraints from code is verbose and not very descriptive. Under the hood Auto Layout is a powerful and flexible way of organising and laying out your views. However creating constraints from code is verbose and not very descriptive.