XLPagerTabStrip icon indicating copy to clipboard operation
XLPagerTabStrip copied to clipboard

how to fix RTL

Open imi24 opened this issue 4 years ago • 1 comments

how to fix RTL i fixed with some change in library add open func startTab(_ startIndex:Int) { currentIndex = startIndex } in PagerTabStripViewController.swift

add open func setStartTab(_ startIndex:Int) { startTab(startIndex) collectionViewDidLoad = true } in ButtonBarPagerTabStripViewController.swift

and in my project

in class ParentViewController: ButtonBarPagerTabStripViewController function viewDidLoad() set super.viewDidLoad() setStartTab(allViewAontroller.count - 1)

and reverse my array override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { for i:Int in 0..<(3){ allViewAontroller.append(UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "child" + String(i + 1))) } return allViewAontroller.reversed() }

imi24 avatar May 12 '20 17:05 imi24

https://github.com/xmartlabs/XLPagerTabStrip/issues/282#issuecomment-1031655006

Dev-Khaled avatar Feb 16 '22 21:02 Dev-Khaled