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 {
101101 }
102102
103103 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 }
106106
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
109109 result. union ( view. getRect ( keepTransform: keepTransform) )
110110 } )
111111
@@ -131,7 +131,7 @@ extension PinLayout {
131131 }
132132
133133 if offsetDx != 0 || offsetDy != 0 {
134- subviews . forEach { ( view) in
134+ includedSubviews . forEach { ( view) in
135135 let viewRect = view. getRect ( keepTransform: keepTransform)
136136 let newRect = viewRect. offsetBy ( dx: offsetDx, dy: offsetDy)
137137 view. setRect ( newRect, keepTransform: keepTransform)
You can’t perform that action at this time.
0 commit comments