Skip to content

Commit 603697a

Browse files
committed
#8 Fixed an issue with removeFrom which does not actually remove row from stack
1 parent 7078533 commit 603697a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/ScrollStackController/ScrollStack.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ open class ScrollStack: UIScrollView, UIScrollViewDelegate {
717717
return
718718
}
719719

720+
// remove row
721+
row.removeFromSuperview()
722+
720723
// When removing a cell the cell above is the only cell whose separator visibility
721724
// will be affected, so we need to update its visibility.
722725
self.updateRowSeparatorVisibility(previousRow)

0 commit comments

Comments
 (0)