We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash If remove all rows from section: section.remove(rowFormers: section.rowFormers) because it method is incorrect:
section.remove(rowFormers: section.rowFormers)
`public func remove(rowFormers: [RowFormer]) -> Self {
var removedCount = 0 for (index, rowFormer) in self.rowFormers.enumerated() { if rowFormers.contains(where: { $0 === rowFormer }) { remove(atIndex: index) //REMOVE INSIDE CYCLE, COUNT OF ELEMENTS CHANGED EVERY ITERATION removedCount += 1 if removedCount >= rowFormers.count { return self } } } return self }`
The text was updated successfully, but these errors were encountered:
It's right:
` public func remove(rowFormers: [RowFormer]) -> Self {
for rowFormer in rowFormers { if let index = self.rowFormers.index(where: {$0 === rowFormer}) { remove(atIndex: index) } } return self }
`
Sorry, something went wrong.
Thank for reporting
Looking into this
ZacharyKhan
No branches or pull requests
Crash If remove all rows from section:
section.remove(rowFormers: section.rowFormers)
because it method is incorrect:
`public func remove(rowFormers: [RowFormer]) -> Self {
The text was updated successfully, but these errors were encountered: