mirror of https://github.com/SnapKit/SnapKit
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:
parent
4303bd6037
commit
7ba2c3f99f
|
@ -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 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 we’ve chosen to swap prefixes from Masonry’s `mas_` to `snp_` so you can use both Masonry and Snappy in the same project.
|
||||
|
||||
## 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.
|
||||
|
|
Loading…
Reference in New Issue