Skip to content

Commit ee2d86c

Browse files
committed
Add position static
1 parent 40e4217 commit ee2d86c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/Swift/FlexLayout.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,10 +1424,12 @@ public final class Flex {
14241424
/**
14251425
*/
14261426
public enum Position {
1427-
/// Default value.
1427+
/// Default value. Positioned according to the flex container's flow. The item offset is positioned using properties top, bottom, left, right, start, end.
14281428
case relative
1429-
/// Positioned absolutely in regards to its container. The item is positionned using properties top, bottom, left, right, start, end.
1429+
/// Positioned absolutely, removed from the flex container's flow. The item is positioned using properties top, bottom, left, right, start, end.
14301430
case absolute
1431+
/// Positioned like relative but ignores insets.
1432+
case `static`
14311433
}
14321434

14331435
/**

Sources/Swift/Impl/FlexLayout+Enum.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ extension YGWrap {
5353
extension YGPositionType {
5454
static let relative = YGPositionTypeRelative
5555
static let absolute = YGPositionTypeAbsolute
56+
static let `static` = YGPositionTypeStatic
5657
}
5758

5859
extension YGDirection {
@@ -149,6 +150,7 @@ extension Flex.Position {
149150
switch self {
150151
case .relative: return YGPositionType.relative
151152
case .absolute: return YGPositionType.absolute
153+
case .static: return YGPositionType.static
152154
}
153155
}
154156
}

0 commit comments

Comments
 (0)