Tabman
Tabman copied to clipboard
Remove all tabs from bar and embedded controllers
New Issue Checklist
- [x] Updated Tabman to the latest version
- [x] I took a look at the Troubleshooting Guide
- [x] I searched for existing GitHub issues
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...
Did you found any solution to this
This is still the case.
You shouldn't self.viewControllers.removeAll()
, that leads to crash. self.reloadData()
should reload controllers properly, but it doesnt.
Having the same issue.