Closed cmouline closed 4 years ago
The issue might be due to trying to update tags. That is not supported and could lead to various issues as there are structures that are probably not updated when the tag of a row changes. Tags should be set when the row is initialized, but not reset afterwards
OK, it does make sense ! I'm going to find another way to achieve what I want to do here. Thanks !
And also thanks for this great lib ! Love using it ❤️
Environment: Eureka 5.3.1, Xcode 12.0 and iOS 13.3 on simulator.
I have a form with multiple sections. I want to be able to duplicate one of these sections and remove those duplicated sections as well and I want the tags of the rows of the duplicated sections to be the same with the index number concatenated to differentiate them. A piece of will explain better.
Here is the base section that I want to be able to duplicate:
Here is my function to add the same section + a remove button (first section cannot be removed) :
And finally the function I used to update my tags cause I want them to be ordered :
So here's my problem, it all works fine as long as I add new sections, when I start removing them it also works. But when I want to add again after I remove a section, I get a crash telling me that I have duplicate tags. But the weird thing is that when I print all my sections and rows at the end of my resetPhaseNumber, I don't see the tags that I want to add so I'm wondering if they are memorized somewhere.
Here is the output of my log :