Akiva Leffert
cd49354220
Factor redundant constraint relation code into RelationTarget protocol
...
Instead of having a copy of each method for each type, factor the
constraint target logic to use a new protocol RelationTarget.
Note that since RelationTarget returns a new ConstraintItem and the
constructor for ConstraintItem is internal, a user will be unable to
erroneously extend the protocol.
LayoutSupport should really be a RelationTarget too, but it seems you
can't extenda a protocol to implement another protocol.
2015-10-14 20:17:59 -04:00
Akiva Leffert
a5be9d646b
Introduce FloatConvertible to reduce relation boilerplate
2015-10-12 00:57:59 -04:00
Tadeas Kriz
2afe4d47ec
Add call to activateConstraints on iOS8+ and fix build issues for OS X.
2015-10-04 23:04:16 +02:00
Ryan Britton
7fc0537c13
Added tvOS checks so the iOS paths are used rather than OS X
2015-09-24 21:37:33 -07:00
Akiva Leffert
16090bde5d
Add support for the iOS 9 Layout Anchor API.
2015-09-23 14:14:16 -04:00
Robert Payne
ba26480317
Fixed iOS 9 layout guides, and better support for legacy platforms
2015-09-22 19:38:50 +12:00
Robert Payne
210bab97c7
Enforce availablility for iOS 8.0+ Attributes
2015-09-19 12:21:42 +12:00
Robert Payne
37b18d44de
`insets` is now `inset` and accepts EdgeInsets as well single values
2015-07-30 19:01:33 +12:00
Robert Payne
57baa96dc7
Removed 'final' declaration in attempt to fix odd crashes
2015-04-23 00:31:40 +12:00
Robert Payne
e2112b3ab8
Loosen API a bit to better allow chaining order
2015-04-16 10:07:51 +12:00
Robert Payne
51662d58bb
Snap is now SnapKit
2015-04-15 23:07:50 +12:00
Robert Payne
529e7588aa
Update fatal errors
2015-04-12 23:44:32 +12:00
Robert Payne
2b00e7b50c
Refactor Constraint -> ConcreteConstraint & Add Updaters!
2015-04-12 23:32:03 +12:00
Robert Payne
c9b89ad974
Refactoring & Documentation
2015-04-12 22:21:02 +12:00