malcommac / ScrollStackController

🧩 Easy scrollable layouts in UIKit - an UIStackView which scroll and uses root views of child view controllers.
MIT License
435 stars 37 forks source link

removeRows not working properly with multiple indexes #30

Open leverdeterre opened 3 months ago

leverdeterre commented 3 months ago

It's not removing all the indexes

A workaround for me is to use a loop on a unit removeRow

removeRow(index: Int, animated: Bool = false) -> UIViewController? {
leverdeterre commented 3 months ago

My second workaround was to reverse my indexes to be removed Like this it probably keep the index correct while removing the elements one by one