Skip to content

Commit fe3a83f

Browse files
authored
Merge pull request #137 from namolnad/namolnad/fixes/isIncludedInLayout
[bug fix] delegate isIncludedInLayout to yoga vs using default value
2 parents bf2e4fe + b39b3c8 commit fe3a83f

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)