Skip to content

Commit 17995f9

Browse files
committed
Update to version 1.10.1
1 parent 2e7f584 commit 17995f9

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

Diff for: CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77

88
# Change Log
99

10+
## [1.10.1](https://github.com/layoutBox/PinLayout/releases/tag/1.10.1)
11+
Released on 2022-02-01
12+
13+
#### New property `pin.keyboardMargins`
14+
15+
* `UIView.pin.keyboardMargins`: property expose directly the value of UIKit [`UIView.keyboardLayoutGuide`](https://developer.apple.com/documentation/uikit/keyboards_and_input/adjusting_your_layout_with_keyboard_layout_guide). This is really useful when layout adjustment due to the keyboard is required. iOS 15+
16+
17+
Added by [baegteun](https://github.com/baekteun) in Pull Request [#238](https://github.com/layoutBox/PinLayout/pull/238)
18+
19+
1020
## [1.10.0](https://github.com/layoutBox/PinLayout/releases/tag/1.10.0)
1121
Released on 2021-05-18
1222

Diff for: PinLayout.podspec

+1-1
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.10.0"
11+
spec.version = "1.10.1"
1212
spec.summary = "Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast."
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"

Diff for: README.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
3535
### Requirements
3636
* iOS 9.0+ / tvOS 9.0+ / macOS 10.9+
3737
* Swift 5.x / 4 / 3 / Objective-C
38-
* Xcode 12 / 11 / 10
38+
* Xcode 13 / 12 / 11 / 10
3939

4040
### Recent changes/features
41+
* :star: Add [`pin.keyboardMargins`](#safeAreaInsets) property [iOS 15+]
4142
* :star: New chainable Objective-C syntax. See [PinLayout using Objective-C](#objective_c_interface)
4243
* :star: Automatic Sizing, use PinLayout to compute view size. See [Automatic sizing](#automatic_sizing)
4344
* :star: Add methods to position a view between two other views. See [Layout between other views](#layout_between).
4445
* :star: Add [`pin.readableMargins` and `pin.layoutMargins`](#safeAreaInsets) properties.
4546
* :star: Add `sizeToFit()` method. See [Adjusting size](#adjusting_size).
4647
* :star: PinLayout can now layout CALayer. See [CALayer Support](#calayer_support) for more information.
47-
* :star: PinLayout is #9 in the list of Swift Layout frameworks on [Awesome Swift](https://swift.libhunt.com/categories/714-layout)
48+
* :star: PinLayout is #8 in the list of Swift Layout frameworks on [Awesome Swift](https://swift.libhunt.com/categories/714-layout)
4849
* See [Changelog](https://github.com/layoutBox/PinLayout/blob/master/CHANGELOG.md) for all changes.
4950

5051

@@ -1221,15 +1222,15 @@ This example layout an UIImageView at the top and center it horizontally, it als
12211222

12221223

12231224
<a name="safeAreaInsets"></a>
1224-
## safeArea, keyboardMargins, readable and layout margins
1225+
## safeArea, readable, layout and keyboard margins
12251226

12261227
UIKit expose 4 kind of areas/guides that can be used to layout views.
12271228
PinLayout expose them using these properties:
12281229

12291230
1. **`UIView.pin.safeArea`**: Expose UIKit `UIView.safeAreaInsets` / `UIView.safeAreaLayoutGuide`.
12301231
2. **`UIView.pin.readableMargins`**: Expose UIKit `UIView.readableContentGuide`.
12311232
3. **`UIView.pin.layoutMargins`**: Expose UIKit `UIView.layoutMargins` / `UIView.layoutMarginsGuide`.
1232-
4. **`UIView.pin.keyboardMargins`**: Expose UIKit `UIView.keyboardLayoutGuide`.
1233+
4. **`UIView.pin.keyboardMargins`**: Expose UIKit `UIView.keyboardLayoutGuide`. [iOS 15+]
12331234

12341235
The following image display the 3 areas on an iPad in landscape mode. (safeArea, readableMargins, layoutMargins)
12351236

@@ -1364,12 +1365,8 @@ PinLayout's `UIView.pin.layoutMargins` property expose directly the value of UIK
13641365
### 4. pin.keyboardMargins:
13651366

13661367
##### Property:
1367-
* **`pin.keyboardMargins: UIEdgeInset`**
1368-
PinLayout's `UIView.pin.keyboardMargins` property expose directly the value of UIKit [`UIView.keyboardLayoutGuide`](https://developer.apple.com/documentation/uikit/keyboards_and_input/adjusting_your_layout_with_keyboard_layout_guide). This is really useful when layout adjustment due to the keyboard is required.
1369-
1370-
Bottom of safe area when the keyboard undocked.
1371-
1372-
This property can be used from iOS 15 and above.
1368+
* **`pin.keyboardMargins: UIEdgeInset` [iOS 15+]**
1369+
PinLayout's `UIView.pin.keyboardMargins` property expose directly the value of UIKit [`UIView.keyboardLayoutGuide`](https://developer.apple.com/documentation/uikit/keyboards_and_input/adjusting_your_layout_with_keyboard_layout_guide). This is really useful when layout adjustment due to the keyboard is required. [iOS 15+]
13731370

13741371
##### Usage example:
13751372
```swift

0 commit comments

Comments
 (0)