Tabman icon indicating copy to clipboard operation
Tabman copied to clipboard

Remove all tabs from bar and embedded controllers

Open lkuraer opened this issue 4 years ago • 3 comments

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...

lkuraer avatar Jul 29 '20 19:07 lkuraer

Did you found any solution to this

Parameshvadivel avatar Oct 30 '20 03:10 Parameshvadivel

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

darekxan avatar Nov 24 '20 12:11 darekxan

Having the same issue.

Yulia8294 avatar Nov 25 '20 22:11 Yulia8294