Alex Simpson
441a1695ed
Update deprecations to allow Xcode to auto-fixup. ( #634 )
2019-11-27 23:26:43 +13:00
Josh Converse
d482f59648
Adds two new compositions – DirectionalEdges and DirectionalMargins ( #595 )
...
* WIP
* Add directional margins
* Whitespace
2019-08-05 17:16:17 +12:00
Josh Converse
04e9c890aa
Adds support for NSDirectionalEdgeInsets as an inset constant ( #594 )
2019-06-11 00:32:33 +12:00
Jungwon An
ca81e8ece0
Support swift 5.0 ( #570 )
...
* Update swift version 5.0
* Remove needless access control
* Fix misused "Available" annotations
* Support @unknown default
* Support swift 5.0 in test code
* Update podspec
* Update travis CI
* Code review by @freak4pc
* Add constraint for Swift version
* Fix build failed
2019-04-03 06:25:22 +13:00
Colin T.A. Gray
15beb52218
Adds 'constraint.isActive = bool' to Constraint ( #496 )
...
* delegate identical 'constraint creation' code to 'prepareConstraints'
* adds 'set(isActivated:)' method to call appropriate 'activate/deactivate' based on bool
cleans up about 30 lines of
if foo { activate }
else { deactivate }
code in my app
* instead of 'set(isActivated:)', use 'isActive = value'
2018-06-23 23:15:34 +12:00
Benjamin Chrobot
2c8262ef9f
Add update(priority: ConstraintPriority) method ( #467 )
...
* Add update(priority: ConstraintPriority) method
* Fix copy-paste error
2017-10-13 22:33:36 +13:00
Raimon Lapuente
e44888b0e4
Xcode 4 mac compatibility ( #446 )
...
* Typealias the types that are different on mac and ios
Update tests because when failing they where being blocked and stoped running
* try xcode 9 version to see tests pass
* Renaming the Typealiases to remove Generic suffix and NS prefix
2017-09-17 14:15:34 +12:00
Robert Payne
d31148f449
Swift 4 Migration
2017-06-12 22:12:07 +12:00
Robert Payne
a15821b791
Improve Priority API's
2017-02-11 22:49:00 +13:00
Shehryar
a7053adc4a
Priority enum ( #345 )
...
* Adds ConstraintPriority enum to ConstraintMakerPrioritizable
* Constraints priority is now more robust
* Adds priority enum function
* Fixes compile error
* Adds failable initializer. Custom macOS medium priority. Adds back deleted methods
* Updates depracation messages
2017-02-11 22:37:51 +13:00
Robert Payne
c206e9b944
Add an isActive API to Constraint
2017-02-11 22:36:06 +13:00
Colin T.A. Gray
ab6c1fd91f
make 'layoutConstraints' public again ( #382 )
2016-12-27 00:08:42 +13:00
Robert Payne
98e613686f
Reverse Objective-Cifying of Constraint
2016-11-24 17:21:04 +13:00
Robert Payne
eb107818ac
Fix Memory Leaks
2016-11-24 00:03:41 +13:00
Robert Payne
ddf15594fd
Improve looping of existing constraints
2016-11-23 15:28:35 +13:00
Robert Payne
dc304472aa
Begin support for LayoutGuide constraint maker
2016-10-07 23:58:56 +13:00
Living
da4426cb9a
change the result constraint of maker.center.equalTo(CGPoint) to based on the original point of superview ( #336 )
...
* change center.equalTo
* fix logic
2016-09-29 00:41:15 +13:00
vhosune
3f529652a4
fix "Mutating a priority from required to not on an installed constra… ( #323 )
...
* fix "Mutating a priority from required to not on an installed constraint (or vice-versa) is not supported." when the priority is not changed
* add more check when changing layout constraint priority
* add more lenient check when changing layout constraint priority
* fix UILayoutPriorityRequired available only on iOS
* fix undeclared UILayoutPriority on macOS
* add check for tvOS
2016-09-23 22:54:49 +12:00
Robert Payne
46c02e3cc9
Fix edges to edges for macOS
2016-09-20 16:57:16 +12:00
Robert Payne
cfa4c6a545
Fix up memory leaks
2016-09-20 16:53:32 +12:00
Robert Payne
f29d66a079
Add deprecated install/uninstall
2016-09-14 20:59:59 +12:00
Robert Payne
ffd450754a
Update deprecation notice versions
2016-09-14 20:59:51 +12:00
Robert Payne
67271dc666
Rework how updateConstraints works if no existing constraints
...
updateConstraints will no longer allow creation of new constraints but if you call updateConstraints and there have been no previous constraints created it will re-route to makeConstraints
2016-09-10 21:51:20 +12:00
Robert Payne
cdedbcdea7
Fix bug where pinning composite to composite would fail
2016-09-10 16:38:40 +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
fc298aeaf4
Split up DSL and add support for UILayoutGuide
2016-09-02 00:27:26 +12:00
Robert Payne
7e8c173224
Allow implied superview for equalTo(constant)
2016-08-16 23:24:14 +12:00
Robert Payne
a772f08051
Remove unused code
2016-08-16 22:53:17 +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
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
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
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
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
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
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
Robert Payne
ba26480317
Fixed iOS 9 layout guides, and better support for legacy platforms
2015-09-22 19:38:50 +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
Robert Payne
446e5c5758
Merged in 0.13.0 changes
2015-07-30 19:35:48 +12:00
Ben Jones
5afd216e21
Handle new NSLayoutAttribute FirstBaseline that is introduced in OS X 10.11 for CGPoint or EdgeInsets
2015-07-30 19:30:56 +12:00