Skip to content

Commit

Permalink
Merge pull request #137 from namolnad/namolnad/fixes/isIncludedInLayout
Browse files Browse the repository at this point in the history
[bug fix] delegate isIncludedInLayout to yoga vs using default value
  • Loading branch information
lucdion authored Aug 3, 2019
2 parents bf2e4fe + b39b3c8 commit fe3a83f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Sources/FlexLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ public final class Flex {
This property controls dynamically if a flexbox's UIView is included or not in the flexbox layouting. When a
flexbox's UIView is excluded, FlexLayout won't layout the view and its children views.
*/
public var isIncludedInLayout: Bool = true {
didSet {
yoga.isIncludedInLayout = isIncludedInLayout
public var isIncludedInLayout: Bool {
get {
return yoga.isIncludedInLayout
}
set {
yoga.isIncludedInLayout = newValue
}
}

Expand Down

0 comments on commit fe3a83f

Please sign in to comment.