-
Notifications
You must be signed in to change notification settings - Fork 30
Fixed assertion failure when reloading with animations #4
Comments
Same problem here. Any news ? |
Nope, nothing heard from the owner yet. 😕 |
Seems like the problem is inside this function.
In this lines
Because inside If you move this line I also think that it would be great to add if statement between iOS 11 and lower to use |
I can confirm that what @crabman448 suggested works; my initial table content was loaded with an animation. However; I encountered a subsequent crash after trying to add more models to a section:
I've checked and it seems by conforming to
For now I've manually implemented |
@geraldeersteling Yes the documentation explicitly recommend to conform to both
|
@geraldeersteling I think you should implement
And with swift 4 it is easy yo conform to |
You're right @OlivierLapraye / @crabman448, I overlooked that part. I implemented the |
Hello,
Great work on the Kit, I really like the setup. I do encounter an assertion failure when trying to use reloading with animations.
I'm creating a viewcontroller with a tableview which includes search. The content (models) are supplied through an JSON (which is parsed to a correct
ModelProtocol
).Everything goes fine if I use/reload the tableview without animations, but as soon as I use
reloadData(after:onEnd:)
my app crashes with an assertion failure.Here is a snippet of my code:
The above snippet triggers an assertion exception which tells:
This happens even if I remove the line
$0.removeAll()
. Somehow thedeleteSections
is not working properly.Am I doing something wrong here?
Thanks
The text was updated successfully, but these errors were encountered: