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
Robert Payne
f59340c39b
Revert "[EXC_BAD_ACCESS] Update LayoutConstraint == operator to support iOS 10 and higher changes ( #574 )" ( #593 )
...
This reverts commit bc2b0b9332
.
2019-04-28 20:43:09 +12:00
Alexander Belonogov
bc2b0b9332
[EXC_BAD_ACCESS] Update LayoutConstraint == operator to support iOS 10 and higher changes ( #574 )
...
* @sashabelonogov Update LayoutConstraint == operator to support iOS 10 and higher changes
* Simplify return statement of the LayoutConstraint == operator
2019-04-03 06:28:51 +13: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
Linus Unnebäck
01124b9f32
Add Swift Package Manager support ( #501 )
2018-05-19 16:47:52 +12: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
Alex Manzella
ff97375b22
Add `Strideble` conformance to `ConstraintPriority ` ( #409 )
...
This enables sugar like: `.priority(.low + 1)`
2017-02-22 15:07:09 +13:00
Robert Payne
cdea5fee42
Tweak priority API's some more and add tests
2017-02-11 23:09:49 +13:00
Felix Lapalme
63bf462e81
Make ConstraintMakerRelatable targets work with UILayoutGuide ( #372 )
...
* Make ConstraintMakerRelatable targets work with UILayoutGuide
* Fix unit tests on macOS
* Fix the OS API version availability directives
2016-12-26 00:37:38 +13:00
Eddie Kaiger
3ce0d32bce
Add platform check for UILayoutGuide test. ( #366 )
2016-12-26 00:20:36 +13:00
Living
6312572419
add @available to ConstraintLayoutGuide extension ( #357 )
...
* add @available to ConstraintLayoutGuide extension
* Modify #available
2016-10-11 23:11:00 +13:00
Robert Payne
d32a47f0dd
Finish support for UILayoutGuide via Constraint MAker
2016-10-08 00:06:40 +13:00
Robert Payne
de00f5e87e
Fix up debug labels accessors
2016-09-20 17:08:30 +12:00
Robert Payne
505ed036a0
Fix tests
2016-09-20 15:12:30 +12:00
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
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
c1ae9c28ac
More tests
2016-09-02 00:57:40 +12:00
Robert Payne
17db4dee15
Increase test coverage and fix bugs
2016-09-02 00:54:18 +12:00
Robert Payne
fc298aeaf4
Split up DSL and add support for UILayoutGuide
2016-09-02 00:27:26 +12:00
Madhava Jay
43c0f2b487
Fixed testSizeConstraints test as per suggestion:
...
https://github.com/SnapKit/SnapKit/pull/243
2016-08-31 13:40:54 +02:00
Robert Payne
ae3012f884
Add more tests
2016-08-16 23:24:51 +12:00
Robert Payne
218efd7d3b
Add more tests
2016-08-06 23:24:43 +12:00
Robert Payne
9d0232ca08
API updates, migrate away from iOS 7.0 support
2016-08-06 22:38:02 +12:00
Robert Payne
7ba532d597
Major overhaul
2016-01-26 23:49:04 +13: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
c1de30ac5c
Updated for Swift 2.0
2015-07-30 19:30:56 +12:00
Robert Payne
6252444966
Added support for view controller layout guides
2015-05-30 19:54:43 +12:00
Robert Payne
51662d58bb
Snap is now SnapKit
2015-04-15 23:07:50 +12:00
Robert Payne
c9b89ad974
Refactoring & Documentation
2015-04-12 22:21:02 +12:00
Robert Payne
931d6ca7ec
Initial Implementation of protocol API
2015-04-11 23:39:12 +12:00
Robert Payne
f3e8eb487c
Added test case for activate/deactivate
2015-04-11 21:50:44 +12:00
Robert Payne
c5bab635ec
Re-organized Project
2015-03-24 11:39:41 +13:00