Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple scrollviews are created , behind the view. #13

Open
Arun30sep opened this issue Apr 14, 2017 · 1 comment
Open

multiple scrollviews are created , behind the view. #13

Arun30sep opened this issue Apr 14, 2017 · 1 comment

Comments

@Arun30sep
Copy link

Arun30sep commented Apr 14, 2017

I'm using this library and come across a strange issue, as i was debugging my view hierarchy for some UIIsuues. There are multiple view created behind the desired sliding view.
screen shot 2017-04-14 at 7 34 17 pm

here's my code that i used to build view

var categoryView = CategoryViewController
for i in 0..<self.titles.count{
let vc = self.storyboard?.instantiateViewController(withIdentifier: "CategoryViewController") as! CategoryViewController
vc.delegate = self
vc.data = self.data[self.titles[i]] as! Array<[String:Any]>
categoryView.append(vc)
}
let slidingContainerViewController = SlidingContainerViewController (
parent: self,
contentViewControllers: categoryView,
titles: self.titles)
self.slidingTabView.addSubview(slidingContainerViewController.view)
slidingContainerViewController.sliderView.appearance.outerPadding = 0
slidingContainerViewController.sliderView.appearance.innerPadding = 30
slidingContainerViewController.sliderView.appearance.fixedWidth = false
slidingContainerViewController.sliderView.appearance.selectorHeight = 1
slidingContainerViewController.sliderView.appearance.selectorColor = appColor
slidingContainerViewController.sliderView.appearance.selectedTextColor = UIColor.black
slidingContainerViewController.sliderView.appearance.textColor = UIColor.lightGray
slidingContainerViewController.sliderView.appearance.backgroundColor = UIColor.white
slidingContainerViewController.setCurrentViewControllerAtIndex(0)
slidingContainerViewController.delegate = self

@arshadsk5
Copy link

Even i got the same issue, any help please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants