We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
includedSubviews
autoSizeThatFits(_:layoutClosure:)
1 parent 086a02c commit 33c51b4Copy full SHA for 33c51b4
1 file changed
Sources/Extensions/UIView+PinLayout.swift
@@ -145,7 +145,7 @@ extension UIView: AutoSizeCalculable {
145
146
layoutClosure()
147
148
- let boundingRect = subviews.compactMap({ $0.autoSizingRectWithMargins }).reduce(CGRect.zero) { (result: CGRect, autoSizingRect: CGRect) -> CGRect in
+ let boundingRect = includedSubviews.compactMap({ $0.autoSizingRectWithMargins }).reduce(CGRect.zero) { (result: CGRect, autoSizingRect: CGRect) -> CGRect in
149
return result.union(autoSizingRect)
150
}
151
0 commit comments