Robert Payne
ac0b5829aa
Remove prints
2016-09-10 16:40:55 +12:00
Robert Payne
cdedbcdea7
Fix bug where pinning composite to composite would fail
2016-09-10 16:38:40 +12:00
Robert Payne
9b1a0519ee
Add back in equalToSuperview API
2016-09-10 16:31:28 +12:00
Robert Payne
2e4cebf41d
Fix bug around view.snp.layoutConstraints being dealloc’d
2016-09-07 20:23:54 +12:00
Robert Payne
2764642a2d
Tweaks for OSX support
2016-09-02 01:39:08 +12:00
Robert Payne
514ec79042
Add support for edges to margins and margins to edges
2016-09-02 01:23:25 +12:00
Robert Payne
214682b806
Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into feature/0.40.0
2016-09-02 00:54:29 +12:00
Robert Payne
17db4dee15
Increase test coverage and fix bugs
2016-09-02 00:54:18 +12:00
Robert Payne
4da527ab19
Merge pull request #285 from uny/feature/0.40.0
...
Make ConstraintDescription.constraint lazy
2016-09-02 00:54:07 +12:00
Robert Payne
fc298aeaf4
Split up DSL and add support for UILayoutGuide
2016-09-02 00:27:26 +12:00
Yuki Nagai
4bd29e82fb
Make ConstraintDescription.constraint lazy
2016-08-29 15:23:22 +09:00
Robert Payne
fbd807fd09
Alter how insets work when used as implied constant
...
Using make.left.bottom.equalTo(UIEdgeInsets) will now invert the right and bottom edge.
2016-08-16 23:24:48 +12:00
Robert Payne
7e8c173224
Allow implied superview for equalTo(constant)
2016-08-16 23:24:14 +12:00
Robert Payne
79137bce68
Xcode 8 - Beta 6
2016-08-16 22:53:27 +12:00
Robert Payne
a772f08051
Remove unused code
2016-08-16 22:53:17 +12:00
Robert Payne
e039522882
Fix OSX deprecation
2016-08-08 11:08:22 +12:00
Robert Payne
6aca61ac93
Add `center` to constraint maker
2016-08-06 23:25:03 +12:00
Robert Payne
1b712cde8c
Remove unecessary print statement
2016-08-06 23:24:55 +12:00
Robert Payne
9d0232ca08
API updates, migrate away from iOS 7.0 support
2016-08-06 22:38:02 +12:00
Robert Payne
17a01931db
Deprecate priority helpers
2016-08-04 10:57:30 +12:00
Robert Payne
f5511c3bac
Add in existing update functions and deprecate them
2016-08-04 10:57:23 +12:00
Robert Payne
e713b9da5b
Add API’s for updating offset/inset/priorty
2016-08-04 10:46:25 +12:00
Robert Payne
200b341492
Add content hugging / compression resistance shortcuts
2016-08-04 10:27:26 +12:00
Robert Payne
8b85ac86d3
Fix missing availability macro
2016-08-04 10:27:15 +12:00
Robert Payne
8fc933a5c2
Fix up legacy deployment and availability of APIs
2016-08-03 14:39:47 +12:00
Robert Payne
4715badfa0
Beta 4 Updates
2016-08-02 19:56:16 +12:00
Robert Payne
9f8ad44677
Add missing remove constraints function content
2016-07-11 21:56:23 -06:00
Robert Payne
adab4b821a
Deprecate .baseline and migrate to .lastBaseline
2016-07-06 09:08:14 -07:00
Alex Pawlowski
b916d75956
Added sensible @discardableResult attributes for ConstraintMaker public functions
2016-06-28 15:55:23 +03:00
Alex Pawlowski
d00444d7d1
Migrated to latest Swift 3.0 syntax and latest macOS Cocoa API
2016-06-28 15:31:43 +03:00
Robert Payne
8355410d92
Swift 3.0 Migration
2016-06-15 13:49:49 +12:00
Robert Payne
f785886d3a
Fix deprecated APIs
2016-05-19 17:02:15 +12:00
Robert Payne
d2f259ec5f
Bump deprecation notices versioning
2016-05-19 16:54:19 +12:00
Robert Payne
7ba532d597
Major overhaul
2016-01-26 23:49:04 +13:00
Ray Lillywhite
483d525c72
Fix handling of UIEdgeInsets for width and height
2016-01-07 13:52:28 -08:00
Robert Payne
2dcf3bddfa
nits
2015-11-08 21:18:01 +13:00
Akiva Leffert
7ae143c3ac
Expose location as part of LayoutConstraint for public access
2015-10-14 20:17:59 -04:00
Akiva Leffert
0fe4ad005b
Switch makerFile/line to use SourceLocation for consistency
...
Allows removing redundant default location
2015-10-14 20:17:59 -04:00
Akiva Leffert
bbe5b2e49d
Instrument each constraint with a source location.
2015-10-14 20:17:59 -04:00
Akiva Leffert
104ce8895c
Convert protocol hierarchy to class hierarchy
...
This has no value unto itself, but is necessary for adding default
arguments to the ConstraintDescriptionRelatable methods, which we'll
need to instrument in source locations.
2015-10-14 20:17:59 -04:00
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
e84f9bc1c3
Add compiler condition to remove warnings when not using legacy deployment.
2015-10-04 23:17:48 +02: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
de954c0c12
Merge branch 'develop' of github.com:SnapKit/SnapKit into develop
...
# Conflicts:
# Source/ConstraintAttributes.swift
2015-09-19 12:37:23 +12:00
Robert Payne
210bab97c7
Enforce availablility for iOS 8.0+ Attributes
2015-09-19 12:21:42 +12:00
Suyeol Jeon
ba03f22eb8
Add availability check for iOS 8 and OS X 10.10 methods.
...
- `NSLayoutConstraint.activateConstraints(_:)`
- `NSLayoutConstraint.deactivateConstraints(_:)`
2015-09-18 13:18:28 +09:00