Skip to content

Commit 30944d7

Browse files
author
Fabrizio Scarano
committed
Constraints updates moved to updateConstraints() to avoid loops
1 parent c0ae24c commit 30944d7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Sources/ScrollStackController/ScrollStackRow.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,9 @@ open class ScrollStackRow: UIView, UIGestureRecognizerDelegate {
244244
separatorView.isHidden = isSeparatorHidden
245245
}
246246

247-
open override func layoutSubviews() {
248-
super.layoutSubviews()
249-
250-
// called the event to update the height of the row.
247+
open override func updateConstraints() {
251248
askForCutomizedSizeOfContentView(animated: false)
249+
super.updateConstraints()
252250
}
253251

254252
private func applyParentStackAttributes() {

0 commit comments

Comments
 (0)