File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ extension PinLayout {
101
101
}
102
102
103
103
private func wrapContent( _ type: WrapType , padding: PEdgeInsets , _ context: Context ) -> PinLayout {
104
- let subviews = view. subviews
105
- guard !subviews . isEmpty else { return self }
104
+ let includedSubviews = view. includedSubviews
105
+ guard !includedSubviews . isEmpty else { return self }
106
106
107
- let firstViewRect = subviews [ 0 ] . getRect ( keepTransform: keepTransform)
108
- let boundingRect = subviews . reduce ( firstViewRect, { ( result, view) in
107
+ let firstViewRect = includedSubviews [ 0 ] . getRect ( keepTransform: keepTransform)
108
+ let boundingRect = includedSubviews . reduce ( firstViewRect, { ( result, view) in
109
109
result. union ( view. getRect ( keepTransform: keepTransform) )
110
110
} )
111
111
@@ -131,7 +131,7 @@ extension PinLayout {
131
131
}
132
132
133
133
if offsetDx != 0 || offsetDy != 0 {
134
- subviews . forEach { ( view) in
134
+ includedSubviews . forEach { ( view) in
135
135
let viewRect = view. getRect ( keepTransform: keepTransform)
136
136
let newRect = viewRect. offsetBy ( dx: offsetDx, dy: offsetDy)
137
137
view. setRect ( newRect, keepTransform: keepTransform)
You can’t perform that action at this time.
0 commit comments