Skip to content

Commit 69df266

Browse files
author
Luc Dion
committed
Update version to 1.8.3
1 parent 1065ce8 commit 69df266

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,40 @@
77

88
# Change Log
99

10+
## [1.8.3](https://github.com/layoutBox/PinLayout/releases/tag/1.8.3)
11+
Released on 2018-08-28
12+
13+
#### Add methods to layout a view between two other views
14+
Add methods to position a view between two other views, either horizontally or vertically.
15+
16+
**New Methods:**
17+
18+
* **`horizontallyBetween(:UIView, and: UIView)`**
19+
Position the view between the two specified views horizontally. The method layout the view's left and right edges. The order of the reference views is irrelevant.
20+
Note that the layout will be applied only if there is horizontal space between the specified views.
21+
22+
* **`horizontallyBetween(:UIView, and: UIView, aligned: VerticalAlign)`**
23+
Position the view between the two specified views horizontally and aligned it using the specified VerticalAlign. The view will be aligned related to the first specified reference view. Note that the layout will be applied only if there is horizontal space between the specified views.
24+
25+
* **`verticallyBetween(:UIView, and: UIView)`**
26+
Position the view between the two specified views vertically. The method layout the view's top and bottom edges. The order of the reference views is irrelevant. Note that the layout will be applied only if there is vertical space between the specified views.
27+
28+
* **`verticallyBetween(:UIView, and: UIView, aligned: HorizontalAlign)`**
29+
Position the view between the two specified views vertically and aligned it using the specified HorizontalAlign. The view will be aligned related to the first specified reference view. Note that the layout will be applied only if there is vertical space between the specified views.
30+
31+
###### Example:
32+
33+
<img src="docs/images/pinlayout_verticallyBetween.png" width="600"/>
34+
35+
```swift
36+
view.pin.verticallyBetween(viewA, and: viewB, aligned: .center).marginVertical(10)
37+
```
38+
39+
See [Readme for more information](https://github.com/layoutBox/PinLayout#layout_between)
40+
41+
42+
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#172](https://github.com/layoutBox/PinLayout/pull/172)
43+
1044
## [1.8.2](https://github.com/layoutBox/PinLayout/releases/tag/1.8.2)
1145
Released on 2018-08-25
1246

PinLayout.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |spec|
1010
spec.name = "PinLayout"
11-
spec.version = "1.8.2"
11+
spec.version = "1.8.3"
1212
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]"
1313
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]"
1414
spec.homepage = "https://github.com/layoutBox/PinLayout"

0 commit comments

Comments
 (0)