Skip to content

Commit 81119d0

Browse files
Update README.md to include new horizontal alignment options.
1 parent 03024fd commit 81119d0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ You can use _any_ combination of horizontal and vertical alignment to achieve yo
3131

3232
![Example layout for horizontalAlignment = .justified](Docs/Justified-collection-view-layout.png)
3333

34+
* `horizontalAlignment = .leading`
35+
36+
Renders as either `.left` or `.right`, depending on the user's _layout direction_ ([UIApplication.shared.userInterfaceLayoutDirection](https://developer.apple.com/documentation/uikit/uiapplication/1623025-userinterfacelayoutdirection)):
37+
* `.leftToRight``.left`
38+
* `.rightToLeft``.right`
39+
40+
* `horizontalAlignment = .trailing`
41+
42+
Renders as either `.left` or `.right`, depending on the user's _layout direction_ ([UIApplication.shared.userInterfaceLayoutDirection](https://developer.apple.com/documentation/uikit/uiapplication/1623025-userinterfacelayoutdirection)).
43+
* `.leftToRight``.right`
44+
* `.rightToLeft``.left`
45+
3446
### Vertical Alignment:
3547

3648
* `verticalAlignment = .top`

0 commit comments

Comments
 (0)