You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
Is it expected behaviour, that index should be greater than 0?
publicfunc set(model:ModelProtocol, at index:Int)->ModelProtocol?{
guard index >0, index <self.models.count else{returnnil}letoldModel=self.models[index]self.models[index]= model
return oldModel
}
The text was updated successfully, but these errors were encountered:
malcommac
changed the title
Probably mistypo bug in set(model: , at : )
set(model: , at : ) bug with zero index, added @discardableResult (CollectionSection/TableSection)
Oct 13, 2018
Is it expected behaviour, that index should be greater than 0?
The text was updated successfully, but these errors were encountered: