Skip to content

Commit e06cac6

Browse files
committed
Fix typo in keyboardArea name.
1 parent 1dee021 commit e06cac6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
## [1.10.2](https://github.com/layoutBox/PinLayout/releases/tag/1.10.2)
1111
Released on 2022-02-01
1212

13-
#### Renamed property `pin.keyboardMargins` -> `pin.keyBoardArea`
13+
#### Renamed property `pin.keyboardMargins` -> `pin.keyboardArea`
1414

1515
This new name better represent what `UIKit`'s `UIView.keyboardLayoutGuide` is.
1616

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
3838
* Xcode 13 / 12 / 11 / 10
3939

4040
### Recent changes/features
41-
* :star: Add [`pin.keyBoardArea`](#safeAreaInsets) property [iOS 15+]
41+
* :star: Add [`pin.keyboardArea`](#safeAreaInsets) property [iOS 15+]
4242
* :star: New chainable Objective-C syntax. See [PinLayout using Objective-C](#objective_c_interface)
4343
* :star: Automatic Sizing, use PinLayout to compute view size. See [Automatic sizing](#automatic_sizing)
4444
* :star: Add methods to position a view between two other views. See [Layout between other views](#layout_between).
@@ -1230,7 +1230,7 @@ PinLayout expose them using these properties:
12301230
1. **`UIView.pin.safeArea`**: Expose UIKit `UIView.safeAreaInsets` / `UIView.safeAreaLayoutGuide`.
12311231
2. **`UIView.pin.readableMargins`**: Expose UIKit `UIView.readableContentGuide`.
12321232
3. **`UIView.pin.layoutMargins`**: Expose UIKit `UIView.layoutMargins` / `UIView.layoutMarginsGuide`.
1233-
4. **`UIView.pin.keyBoardArea`**: Expose UIKit `UIView.keyboardLayoutGuide`. [iOS 15+]
1233+
4. **`UIView.pin.keyboardArea`**: Expose UIKit `UIView.keyboardLayoutGuide`. [iOS 15+]
12341234

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

@@ -1362,15 +1362,15 @@ PinLayout's `UIView.pin.layoutMargins` property expose directly the value of UIK
13621362

13631363
<br/>
13641364

1365-
### 4. pin.keyBoardArea:
1365+
### 4. pin.keyboardArea:
13661366

13671367
##### Property:
1368-
* **`pin.keyBoardArea: CGRect` [iOS 15+]**
1368+
* **`pin.keyboardArea: CGRect` [iOS 15+]**
13691369
The property expose the `UIKit` value [`UIView.keyboardLayoutGuide`](https://developer.apple.com/documentation/uikit/keyboards_and_input/adjusting_your_layout_with_keyboard_layout_guide). It represents the area (`CGRect`) of the keyboard that is covering the view. Useful to adjust the layout when the keyboard is visible. [iOS 15+]
13701370

13711371
##### Usage example:
13721372
```swift
1373-
container.pin.bottom(view.pin.keyBoardArea.top)
1373+
container.pin.bottom(view.pin.keyboardArea.top)
13741374
```
13751375

13761376

Sources/PinLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public class PinLayout<View: Layoutable> {
116116
#endif
117117

118118
#if os(iOS)
119-
public var keyBoardArea: CGRect {
119+
public var keyboardArea: CGRect {
120120
guard #available(iOS 15.0, *) else { return .zero }
121121
guard let view = view as? UIView else { return .zero }
122122

0 commit comments

Comments
 (0)