Skip to content

Commit c0ae24c

Browse files
committed
Removed double removeFromSuperView, fixed constraints issue before adding the row to its superview
1 parent ffe49f7 commit c0ae24c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Sources/ScrollStackController/ScrollStackRow.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,11 @@ open class ScrollStackRow: UIView, UIGestureRecognizerDelegate {
230230
return
231231
}
232232

233-
contentView.removeFromSuperview()
234233
contentView.removeFromSuperview()
235234

236235
addSubview(contentView)
237236
addSubview(separatorView)
238-
239-
askForCutomizedSizeOfContentView(animated: false)
240-
237+
241238
didUpdateContentViewContraints()
242239
didUpdateSeparatorViewContraintsIfNeeded()
243240
didUpdateSeparatorAxis()

0 commit comments

Comments
 (0)