uias / Tabman

™️ A powerful paging view controller with interactive indicator bars
https://uias.github.io/Tabman
MIT License
2.84k stars 235 forks source link

Remove all tabs from bar and embedded controllers #523

Open lkuraer opened 4 years ago

lkuraer commented 4 years ago

New Issue Checklist

Issue Description

Great library and animation for swipe etc. But I add controller dynamically after API request (loading categories). Everything worked fine, till there appeared a task to remove all categories -> so I need to remove all tabs and controllers. How could i do this? When I do:

    self.viewControllers.removeAll()
    self.reloadData()

Tab become not working and swipe also, but one controller is till in there, and trying to tap on tabs leads to crash...

Parameshvadivel commented 3 years ago

Did you found any solution to this

darekxan commented 3 years ago

This is still the case. You shouldn't self.viewControllers.removeAll(), that leads to crash. self.reloadData() should reload controllers properly, but it doesnt.

Yulia8294 commented 3 years ago

Having the same issue.