You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -532,9 +532,9 @@ This is an equivalent solutions using other methods:
532
532
533
533
### Positioning using only visible relative UIViews
534
534
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.
536
536
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.
538
538
539
539
###### Example:
540
540
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
934
934
***Q: When the device rotation change, the layout is not updated.**
935
935
**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.
936
936
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).
939
939
1. First set the container width and its position:
0 commit comments