Skip to content

Commit 66d9ae9

Browse files
author
Luc Dion
committed
Update version to 1.8.2
1 parent edf804a commit 66d9ae9

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,26 @@
77

88
# Change Log
99

10-
## [1.8.0](https://github.com/layoutBox/PinLayout/releases/tag/1.8.0)
10+
## [1.8.2](https://github.com/layoutBox/PinLayout/releases/tag/1.8.2)
11+
Released on 2018-08-25
12+
13+
#### Add `pin.readableMargins` and `pin.layoutmargins`
14+
Add properties:
15+
16+
* **`pin.readableMargins: UIEdgeInset`**:
17+
PinLayout's `UIView.pin.readableMargins` property expose UIKit [`UIView.readableContentGuide`](https://developer.apple.com/documentation/uikit/uiview/1622644-readablecontentguide) as an UIEdgeInsets. This is really useful since UIKit only expose the readableContent area to Auto Layout using UILayoutGuide.
18+
19+
* **`pin.layoutmargins: UIEdgeInset`**
20+
PinLayout's `UIView.pin.layoutMargins` property expose directly the value of UIKit [`UIView.layoutMargins`](https://developer.apple.com/documentation/uikit/uiview/1622566-layoutmargins). The property exists only to be consistent with the other areas: `pin.safeArea`, `pin.readableMargins` and `pin.layoutmargins`. So its usage is not necessary.
21+
22+
**Add examples using these properties:**
23+
![pinlayout_example_layout_margins_all](https://user-images.githubusercontent.com/14981341/44617938-51475900-a83a-11e8-96eb-d24f5561dab2.png)
24+
25+
![pinlayout_example_tableview_readable_content_all](https://user-images.githubusercontent.com/14981341/44617939-51475900-a83a-11e8-9cc6-fe2aac499ce8.png)
26+
27+
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#169](https://github.com/layoutBox/PinLayout/pull/169)
28+
29+
## [1.8.1](https://github.com/layoutBox/PinLayout/releases/tag/1.8.1)
1130
Released on 2018-08-23
1231

1332
#### PinLayout Swift 3 support

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.1"
11+
spec.version = "1.8.2"
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"

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
4242
* :star: Add `sizeToFit()` method. See [Adjusting size](#adjusting_size).
4343
* :star: PinLayout can now layout CALayer. See [CALayer Support](#calayer_support) for more information.
4444
* :star: PinLayout is in the Top 10 of Swift Layout frameworks on [Awesome Swift](https://swift.libhunt.com/categories/714-layout)
45-
* :star: PinLayout has moved to the **[layoutBox](https://github.com/layoutBox)** organization. See other **[layoutBox](https://github.com/layoutBox)** projects.
46-
* :star: Add `wrapContent()` methods that adjust view's width and height to wrap all its subviews. See [wrapContent](#wrapContent) for more information.
45+
* :star: PinLayout has moved to the **[layoutBox](https://github.com/layoutBox)** organization.
46+
* :star: Add [`wrapContent()`](#wrapContent) methods that adjust view's width and height to wrap all its subviews.
4747
* :star: PinLayout now support macOS. See [macOS Support](#macos_support) for more information.
4848
* :star: PinLayout expose the `safeAreaInsets` through [`pin.safeArea`](#safeAreaInsets), this property support not only iOS 11, but is also backward compatible for earlier iOS releases (7/8/9/10). See [safeAreaInsets support](#safeAreaInsets) for more information.
49+
* See [Changelog](https://github.com/layoutBox/PinLayout/blob/master/CHANGELOG.md) for all changes.
4950

5051

5152

0 commit comments

Comments
 (0)