Skip to content

Commit 37d7f7e

Browse files
committed
chore: add documentation for HorizontalAlignment
1 parent 74cece6 commit 37d7f7e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

AlignedCollectionViewFlowLayout/Classes/AlignedCollectionViewFlowLayout.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ import UIKit
3232
/// An abstract protocol that defines an alignment.
3333
protocol Alignment {}
3434

35-
/// Defines an alignment for UI elements.
35+
/**
36+
Defines an alignment for UI elements.
37+
38+
- Note:
39+
To support semantics for Right-to-Left language Users, use `leading` or `trailing`
40+
just like you do with Autolayout.
41+
42+
If you want to force frame based `left` or `right` alighment, use `left` or `right`
43+
*/
3644
public enum HorizontalAlignment: Alignment {
3745
case left
3846
case justified

0 commit comments

Comments
 (0)