Skip to content

Commit b0f5ae2

Browse files
author
Luc Dion
committed
Fix typos in readme.md
1 parent c88f97d commit b0f5ae2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ This is an equivalent solutions using other methods:
532532

533533
### Positioning using only visible relative UIViews
534534

535-
All PinLayout's relative methods can accept an array of UIViews (ex: `below(of: [UIView])`). Usign these methods its possible to filter the list of relative UIViews before the list is used by PinLayout.
535+
All PinLayout's relative methods can accept an array of UIViews (ex: `below(of: [UIView])`). Usign these methods it's possible to filter the list of relative UIViews before the list is used by PinLayout.
536536

537-
PinLayout has a filter method called `visible` that can be used to layout a view related to only visible views. This can be really usefull when some views may be hidden for some particular reason.
537+
PinLayout has a filter method called `visible` that can be used to layout a view related to only visible views. This can be really useful when some views may be visible or hidden depending on the situation.
538538

539539
###### Example:
540540
The following example contains a UISwitch. Below a UITextField that is visible only when the UISwitch is set to ON. And then follow another UITextField. This example use the `visible(views: [UIView]) -> [UIView]` filter method that returns only views with `UIView.isHidden` set to false or `UIView.alpha` greater than 0.
@@ -934,11 +934,11 @@ This app is available in the `Example` folder. Note that you must do a `pod inst
934934
* **Q: When the device rotation change, the layout is not updated.**
935935
**R:** PinLayout doesn't use auto layout constraints, it is a framework that manually layout views. For that reason you need to update the layout inside either `UIView.layoutSubviews()` or `UIViewController.viewDidLayoutSubviews()` to handle container size's changes, including device rotation. You'll also need to handle UITraitCollection changes for app's that support multitask.
936936

937-
* **Q: How can we adjust a UIView container to match all its child?**
938-
**R:** The proposed solution is used by the **Form** example for its rounded corner background. Suppose you want to adjust a container height to match all its childs (subviews).
937+
* **Q: How can we adjust a UIView container to match all its children?**
938+
**R:** The proposed solution is used by the **Form** example for its rounded corner background. Suppose you want to adjust a container height to match all its child (subviews).
939939
1. First set the container width and its position:
940940
`containerView.pin.topCenter().width(100%).marginTop(10)`
941-
2. Layout all its childs.
941+
2. Layout all its children.
942942
3. Finally, set the container height to match its last child Y position:
943943
`containerView.pin.height(child6.frame.maxY + 10)`
944944

@@ -962,7 +962,7 @@ For any **comments**, **ideas**, **suggestions**, **issues**, simply open an [is
962962

963963
If you find PinLayout interresting, thanks to **Star** it. You'll be able to retrieve it easily later.
964964

965-
If you'd like to contribute, your welcome!
965+
If you'd like to contribute, you're welcome!
966966

967967
<br>
968968

0 commit comments

Comments
 (0)