Skip to content

Commit b39b3c8

Browse files
committed
[bug fix] delegate values to yoga vs using default value
1 parent bf2e4fe commit b39b3c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/FlexLayout.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,12 @@ public final class Flex {
116116
This property controls dynamically if a flexbox's UIView is included or not in the flexbox layouting. When a
117117
flexbox's UIView is excluded, FlexLayout won't layout the view and its children views.
118118
*/
119-
public var isIncludedInLayout: Bool = true {
120-
didSet {
121-
yoga.isIncludedInLayout = isIncludedInLayout
119+
public var isIncludedInLayout: Bool {
120+
get {
121+
return yoga.isIncludedInLayout
122+
}
123+
set {
124+
yoga.isIncludedInLayout = newValue
122125
}
123126
}
124127

0 commit comments

Comments
 (0)