We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
includedSubviews
autoSizeThatFits(_:layoutClosure:)
1 parent 086a02c commit 33c51b4Copy full SHA for 33c51b4
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