robb / Cartography

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:
Other
7.35k stars 525 forks source link

README.md: fixed ~ examples to use UILayoutPriority #272

Closed NachoSoto closed 6 years ago

NachoSoto commented 6 years ago

I was about to contribute this change to support using LayoutPriority instead of raw values, but realized the latest version already supports this. I haven't been able to pinpoint when this changed though, all I could see is 9e2205c735aa2a4f00c8c8b0313501812cdd2414 updated some tests for it.

Edit: oh I just saw #271:

In Swift 4, UILayoutPriority is a RawRepresentable instead of a Float

So that makes sense, this was a Swift 4.0 change 👍

orta commented 6 years ago

Rockin'