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 b7401ac commit 88dac6eCopy full SHA for 88dac6e
Sources/Extensions/UIView+PinLayout.swift
@@ -143,7 +143,7 @@ extension UIView: AutoSizeCalculable {
143
144
layoutClosure()
145
146
- let boundingRect = subviews.compactMap({ $0.autoSizingRectWithMargins }).reduce(CGRect.zero) { (result: CGRect, autoSizingRect: CGRect) -> CGRect in
+ let boundingRect = subviewsIncludedInSizeCalculation.compactMap({ $0.autoSizingRectWithMargins }).reduce(CGRect.zero) { (result: CGRect, autoSizingRect: CGRect) -> CGRect in
147
return result.union(autoSizingRect)
148
}
149
0 commit comments