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.
subviewsIncludedInSizeCalculation
autoSizeThatFits(_:layoutClosure:)
1 parent 09f254c commit ec85f63Copy full SHA for ec85f63
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