Swipe or tap viewController immediately (before tabItem's animation has finished)
tabItem shows that Blue viewController is selected, but Red viewController is actually selected. (And after that, Yellow viewController disappears and be skipped)
To prevent this bug, I set tabPagerController.view.isUserInteractionEnabled to false in displayControllerWithIndex, then set to true when animation has been completed.
This change works fine with my project currently.
Sometimes app crashes but not every time.
To prevent this bug, I set
tabPagerController.view.isUserInteractionEnabled
tofalse
indisplayControllerWithIndex
, then set totrue
when animation has been completed. This change works fine with my project currently.