Closed MrFahrenheit-55 closed 4 months ago
Hi @PhilipNell-258
I believe you were confused with usability. I hope it's not a problem for others :smile:.
When you drag the tab to reorder, a rectangle is highlighted, right? This rectangle represents the index between 2 tabs.
But it can also allow you to move directly to index 0 or the index after the last tab. And that's why it's important to be an area other than the tab itself. It might not even have a tab.
So if the tabs are [A][B][C], moving [A] between [A] and [B], it remains [A][B][C]. But moving [B] before [A], the result is [B][A][C].
If the solution was "throw this tab into the index of this other tab", the user would have difficulty moving a tab to the beginning or end.
Great, thanks for the explanation @caduandrade . However, I have defined my own reorder function using the tabviewcontroller. When moving the tab [A] between [B][C], then tab A is moved such that [B][C][A] instead of [B][A][C]. I can send you an example if you like.
Thanks for the feedback. I have found the problem in my custom reorder function. Great package!!
When you reorder tabs to the next index, i.e index 0 to 1, the tabs don't reorder. This works if you reorder tabs to a lower index, i.e. tab 1 to 0. You can use the example code provided.