File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -76,19 +76,12 @@ public final class Flex {
76
76
77
77
This method enables flexbox for `view` and adds it as a subview of the receiver's associated host view.
78
78
79
- Just as views can only have one superview, Yoga nodes should only have one parent node. If `view`
80
- already has a superview, this method removes `view`'s associated yoga node as a child from the superview's
81
- associated yoga node.
82
-
83
79
- Parameter view: The view to be added.
84
80
- Returns: The flex interface corresponding to the added view.
85
81
*/
86
82
@discardableResult
87
83
public func addItem( _ view: UIView ) -> Flex {
88
84
if let host = self . view {
89
- if let superview = view. superview, superview != host && superview. isYogaEnabled {
90
- YGNodeRemoveChild ( superview. yoga. node, view. yoga. node)
91
- }
92
85
host. addSubview ( view)
93
86
return view. flex
94
87
} else {
You can’t perform that action at this time.
0 commit comments