From 66d9ae90c721b9c18e7b9c625e92cfa4ba0e44ab Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Sat, 25 Aug 2018 14:37:30 -0400 Subject: [PATCH] Update version to 1.8.2 --- CHANGELOG.md | 21 ++++++++++++++++++++- PinLayout.podspec | 2 +- README.md | 5 +++-- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bd74a4c..8d809b2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,26 @@ # Change Log -## [1.8.0](https://github.com/layoutBox/PinLayout/releases/tag/1.8.0) +## [1.8.2](https://github.com/layoutBox/PinLayout/releases/tag/1.8.2) +Released on 2018-08-25 + +#### Add `pin.readableMargins` and `pin.layoutmargins` +Add properties: + +* **`pin.readableMargins: UIEdgeInset`**: +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. + +* **`pin.layoutmargins: UIEdgeInset`** +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. + +**Add examples using these properties:** +![pinlayout_example_layout_margins_all](https://user-images.githubusercontent.com/14981341/44617938-51475900-a83a-11e8-96eb-d24f5561dab2.png) + +![pinlayout_example_tableview_readable_content_all](https://user-images.githubusercontent.com/14981341/44617939-51475900-a83a-11e8-9cc6-fe2aac499ce8.png) + +* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#169](https://github.com/layoutBox/PinLayout/pull/169) + +## [1.8.1](https://github.com/layoutBox/PinLayout/releases/tag/1.8.1) Released on 2018-08-23 #### PinLayout Swift 3 support diff --git a/PinLayout.podspec b/PinLayout.podspec index 64c94ad9..bd9e6df2 100644 --- a/PinLayout.podspec +++ b/PinLayout.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |spec| spec.name = "PinLayout" - spec.version = "1.8.1" + spec.version = "1.8.2" 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]" 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]" spec.homepage = "https://github.com/layoutBox/PinLayout" diff --git a/README.md b/README.md index fb2b00f1..dd5a93a7 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,11 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co * :star: Add `sizeToFit()` method. See [Adjusting size](#adjusting_size). * :star: PinLayout can now layout CALayer. See [CALayer Support](#calayer_support) for more information. * :star: PinLayout is in the Top 10 of Swift Layout frameworks on [Awesome Swift](https://swift.libhunt.com/categories/714-layout) -* :star: PinLayout has moved to the **[layoutBox](https://github.com/layoutBox)** organization. See other **[layoutBox](https://github.com/layoutBox)** projects. -* :star: Add `wrapContent()` methods that adjust view's width and height to wrap all its subviews. See [wrapContent](#wrapContent) for more information. +* :star: PinLayout has moved to the **[layoutBox](https://github.com/layoutBox)** organization. +* :star: Add [`wrapContent()`](#wrapContent) methods that adjust view's width and height to wrap all its subviews. * :star: PinLayout now support macOS. See [macOS Support](#macos_support) for more information. * :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. +* See [Changelog](https://github.com/layoutBox/PinLayout/blob/master/CHANGELOG.md) for all changes.