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

datasource reloaded with rxSwift #585

Closed rnjstjddn96 closed 2 years ago

rnjstjddn96 commented 2 years ago

New Issue Checklist

Issue Description

Hi, I'm currently using Tabman with rxSwift, and found viewControllers in tabman being refreshed everytime I navigate with buttons, or swping all the way to the end, and come back to the first one.

I found that

viewController(for pageboyViewController: PageboyViewController, at index: PageboyViewController.PageIndex) -> UIViewController?

method in 'PageboyViewControllerDataSource' called multiple time while moving through pages.

please leave a comment if anyone having similar issue. thank you