You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fitSize() has been removed after being deprecated for 10 months. sizeToFit(...) should now be used instead.
Plus:
* Refactor relative positioning methods source code (above(...), after(...), ...) using a default parameter value for the alignment parameter.
* Fix unit test screen density.
* Update few examples source code.
Copy file name to clipboardExpand all lines: PinLayout.podspec
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
Pod::Spec.newdo |spec|
10
10
spec.name="PinLayout"
11
-
spec.version="1.7.12"
11
+
spec.version="1.8.0"
12
12
spec.summary="Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]"
13
13
spec.description="Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]"
Copy file name to clipboardExpand all lines: README.md
+19-11
Original file line number
Diff line number
Diff line change
@@ -474,20 +474,24 @@ Position the view left of the specified view(s) and aligned it using the specifi
474
474
Position the view right of the specified view(s) and aligned it using the specified VerticalAlignment. Similar to `after(of:)`. One or many relative views can be specified. This method is similar to pinning one view’s anchor: topLeft, centerLeft or bottomLeft.
475
475
476
476
477
-
**How alignment is applied:**
477
+
**How HorizontalAlignment is applied:**
478
478
479
-
***`HorizontalAlignment.left`**: The view's left edge will be aligned to the left most relative view.
480
-
***`HorizontalAlignment.center`**: The view's hCenter edge will be aligned with the average hCenter of all relative views.
481
-
***`HorizontalAlignment.right`**: The view's right edge will be aligned to the right most relative view.
479
+
***`HorizontalAlignment.left`**: The view's left edge will be left-aligned with the relative view (or the left most view if a list of relative views is specified).
480
+
***`HorizontalAlignment.center`**: The view's will be horizontally centered with the relative view (or the average hCenter if a list of relative views is used).
481
+
***`HorizontalAlignment.right`**: The view's right edge will be right-aligned with the relative view (or the right most view if a list of relative views is specified).
In LTR direction the view's left edge will be aligned to the left most relative view.
484
-
In RTL direction the view's right edge will be aligned to the right most relative view.
483
+
In LTR direction, similar to using HorizontalAlignment.left.
484
+
In RTL direction, similar to using HorizontalAlignment.right.
485
485
***`HorizontalAlignment.end`**:left_right_arrow::
486
-
In LTR direction the view's right edge will be aligned to the right most relative view.
487
-
In RTL direction the view's left edge will be aligned to the right most relative view.
488
-
***`VerticalAlignment.top`**: The view's top edge will be aligned to the top most relative view.
489
-
***`VerticalAlignment.center`**: The view's vCenter edge will be aligned with the average vCenter of all relative views.
490
-
***`VerticalAlignment.bottom`**: The view's bottom edge will be aligned to the bottom most relative view.
486
+
In LTR direction, similar to using HorizontalAlignment.right.
487
+
In RTL direction, similar to using HorizontalAlignment.left.
488
+
489
+
**How VerticalAlignment is applied:**
490
+
491
+
492
+
***`VerticalAlignment.top`**: The view's top edge will be top-aligned with the relative view (or the top most view if a list of relative views is specified).
493
+
***`VerticalAlignment.center`**: The view's will be vertically centered with the relative view (or the average vCenter if a list of relative views is used).
494
+
***`VerticalAlignment.bottom`**: The view's bottom edge will be bottom-aligned with the relative view (or the bottom most view if a list of relative views is specified).
491
495
492
496
:pushpin:**Multiple relative views**: If for example a call to `below(of: [...], aligned:) specify multiple relative views, the view will be layouted below *ALL* these views. The alignment will be applied using all relative view
493
497
@@ -1727,6 +1731,10 @@ PinLayout was inspired by other great layout frameworks, including:
1727
1731
## History
1728
1732
PinLayout recent history is available in the [CHANGELOG](CHANGELOG.md) also in [GitHub Releases](https://github.com/layoutBox/PinLayout/releases).
1729
1733
1734
+
### Recent breaking change
1735
+
1736
+
*`fitSize()` has been removed after being deprecated for 10 months. `sizeToFit(...)` should now be used instead. See [Adjusting size](#adjusting_size). (2018-08-21)
0 commit comments