Skip to content

Commit 14564ba

Browse files
committed
#1 Avoid layoutIfNeeded call for separatorAxis property on ScrollStackRow
1 parent 88f2b7c commit 14564ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/ScrollStackController/ScrollStackRow.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ open class ScrollStackRow: UIView, UIGestureRecognizerDelegate {
6363
/// It's automatically managed when you change the axis of the parent stackview.
6464
internal var separatorAxis: NSLayoutConstraint.Axis = .horizontal {
6565
didSet {
66+
guard separatorAxis != oldValue else {
67+
return
68+
}
6669
didUpdateSeparatorViewContraintsIfNeeded()
6770
didUpdateSeparatorAxis()
6871
didUpdateSeparatorInsets()

0 commit comments

Comments
 (0)