Orta
bbe96da534
Merge pull request #297 from YouClap/feature/distribute-equally
...
Distribute width and height equally for all
2019-02-08 17:42:33 -05:00
Luís Portela Afonso
19930c36c1
Distribute width and height equally for all items
...
* Unit tests for width and height distribute
2018-10-04 16:44:34 +01:00
Luís Portela Afonso
fd4d42dc55
Simple helper for use safeAreaLayoutGuide if available
2018-10-01 18:49:34 +01:00
Renato Rodrigues
4797562627
Convert to Swift 4.2.
2018-09-14 12:27:38 +01:00
corujautx
daa1c56428
Adding tests for the layout guides in ViewProxy
2017-11-22 12:01:34 -02:00
corujautx
582dbbe8f9
Extending layout guide suport to NSLayoutGuide
2017-11-22 10:56:14 -02:00
corujautx
d2cabb843e
Improving edges insetting support
...
This allows a more expressive use of edges insetting, as it moves the
current function to be a member of `Edges` itself.
e.g. `view.edges == inset(view.superview!.edges, 10)` can now be
written as `view.edges == view.superview!.edges.inseted(by: 10)` which
is a lot more expressive
This commit does not break the current implementation of the `inset`
function, only adds this cosmetic change that allows more expressivity
2017-11-21 21:49:24 -02:00
corujautx
767821e4cc
Merge branch 'master' of https://github.com/robb/Cartography
2017-10-18 01:29:15 -02:00
corujautx
1bb14b970d
Adding safeAreaLayoutGuide tests
2017-10-17 10:56:27 -02:00
yysskk
3bff77b880
Add tests for safeArea
2017-10-17 10:49:29 +09:00
corujautx
6729905303
Fixing documentation replacing references to view
2017-10-16 12:35:55 -02:00
corujautx
6bcf9564bc
Adding tests for LayoutGuide support
2017-10-16 11:17:16 -02:00
corujautx
462273ba55
Removing elements from constrain method signature
2017-10-16 10:22:03 -02:00
corujautx
2732065126
Adding support to UILayoutGuide in Cartography
...
This also adds a major refactoring to Cartography, supporting
UILayoutGuide and adding a proper support to UILayoutSupport in face of
the release of iOS 11.0
2017-10-11 14:06:54 -03:00
Dmitry Obukhov
9e2205c735
Update macOS tests for Swift4
2017-09-13 15:02:34 +02:00
corujautx
ee4274ec6f
Fixing typo in DistributeSpec test
2016-12-20 14:02:38 -02:00
corujautx
e99f8f5583
Adding tests for fringe cases when the array overloads for align
and distribute
are called with no views or a single view
2016-12-20 13:52:51 -02:00
John Coates
45143a3025
Priority fix and compiler bug workaround
...
This fixes the error “PrioritySpec.swift:22:28: Adjacent operators are in unordered precedence groups 'AssignmentPrecedence' and 'CarthographyPriorityPrecedence’”
It also works around the bug “PrioritySpec.swift:22:48: Cannot assign value of type 'NSLayoutConstraint' to type 'NSLayoutConstraint!’” by switching out the priority Int for a Float.
This workaround is necessary as there’s a Swift compiler bug present.
References:
https://bugs.swift.org/browse/SR-2823
https://openradar.appspot.com/28582961
2016-10-02 21:00:39 -07:00
Orta Therox
b8cfaf8bfc
More CI changes for Swift 3.0
2016-09-22 13:57:23 +01:00
Orta Therox
01906c8e86
Make constraint pass
2016-09-16 17:57:44 +01:00
Raphael Cruzeiro
daf7af616d
Switched to Cocoapods
2016-09-16 17:57:44 +01:00
Raphael Cruzeiro
b13dba992a
Converted pretty much all of the test cases to Swift 3. There's still a problem with the priority operator ~
that will prevent the test project from building (commenting the faulty test will make the test project build and all other tests will pass).
2016-09-16 17:52:40 +01:00
Tim Chilvers
a28cd12b74
Fix missing newline
2016-09-01 20:18:16 +01:00
Tim Chilvers
54e3d08424
Add Nav and Tab controllers to Layout Guide Tests
...
They should give layout guide lengths. They don’t give layout guide lengths. I dislike them intensely.
2016-08-19 18:03:29 +01:00
Tim Chilvers
a08fb28889
Add tests for LayoutSupport
2016-08-19 15:43:40 +01:00
Malcolm Jarvis
adfdf700d8
Add specs for inset using UIEdgeInsets
2016-05-17 07:19:31 -07:00
David Charbonnier
85f54ff343
tvOS compatibility and targets
2015-11-10 11:26:20 +02:00
Robert Böhnke
0cdd37e2a7
Merge branch 'swift-2.0' into 1.0-development
2015-09-10 13:02:14 +02:00
Robert Böhnke
657e6bf1e5
Add missing layoutIfNeeded calls
2015-07-09 11:59:54 +02:00
Robert Böhnke
90ba7f32a0
Remove layout functions
2015-07-09 11:44:09 +02:00
Robert Böhnke
23ccb5584f
Add custom matcher for translatesAutoresizingMaskIntoConstraints
2015-07-05 14:41:39 +02:00
Robert Böhnke
f4ad9f752a
Fix tests
...
Seems like constraints are only actually updated on iOS 9 if the
view is a child of a `UIWindow`.
2015-07-05 14:09:36 +02:00
Robert Böhnke
7c0bdca4b6
Merge branch 'master' into swift-2.0
2015-06-20 16:07:33 +02:00
Derrick J. Hathaway
b739e44b5f
Adds Swift 2.0 support
...
ran the swift migration utility.
added `_` where necessary to prevent an API change (though maybe an API change
should be considered in order to be consistent with the rest of Swift?)
2015-06-11 15:15:17 -06:00
Robert Böhnke
3a2894e0f8
Add LayoutProxy.edgesWithinMargins
2015-04-27 16:39:27 +02:00
Robert Böhnke
5c1095c7f8
Fix edge specs
2015-04-27 16:38:12 +02:00
Robert Böhnke
5d4351d167
Remove Number
2015-04-18 00:51:48 +02:00
Robert Böhnke
f0a37ae8a3
Don't expose closestCommonAncestor
2015-04-10 23:52:20 +02:00
Robert Böhnke
12a7df87b9
Spec Size
2015-04-10 23:31:03 +02:00
Robert Böhnke
e5a6ae61ad
Spec view hierachy handling
2015-04-10 23:28:41 +02:00
Robert Böhnke
770bc9af18
Spec floating point behavior
2015-04-10 23:17:08 +02:00
Robert Böhnke
7bf61825c5
Spec replacing constraints
2015-04-10 23:11:38 +02:00
Robert Böhnke
4dad8b1fa5
Spec Point
2015-04-10 23:03:42 +02:00
Robert Böhnke
47303f6afe
Spec priority operator
2015-04-10 22:55:09 +02:00
Robert Böhnke
f8f245e475
Test operators on top, right, bottom & left
2015-04-10 22:52:38 +02:00
Robert Böhnke
33554915e9
Test operators on width and height
2015-04-10 22:45:07 +02:00
Robert Böhnke
876772b99f
Spec absense of memory leaks
2015-04-10 22:37:39 +02:00
Robert Böhnke
100f99ea90
Spec Edge
2015-04-10 22:35:13 +02:00
Robert Böhnke
bff2c0e49b
Spec Edges
2015-04-10 22:26:20 +02:00
Robert Böhnke
f909b84f31
Spec distribute
2015-04-10 22:22:23 +02:00