SwipeViewController
SwipeViewController copied to clipboard
Crash when I open the VC with the Swipe
Hello,
So, I access this VC with a segue and it works.
Although, when I tried to make it work with this pod it doesn't open anymore.
This is my VC's code. Am I missing anything?
`class PortfolioDetailsVC: SwipeViewController {
override func viewDidLoad() {
super.viewDidLoad()
let pageController = UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal, options: nil)
let navigationController = PortfolioDetailsVC(rootViewController: pageController)
let stb = UIStoryboard(name: "Main", bundle: nil)
let pageOne = stb.instantiateViewController(withIdentifier: "PortfolioDetailsVC") as UIViewController
let pageTwo = stb.instantiateViewController(withIdentifier: "AutoInvestSettingsVC") as UIViewController
let pageThree = stb.instantiateViewController(withIdentifier: "AutoInvestOverviewVC") as UIViewController
setViewControllerArray([pageOne])
pageOne.title = "My AutoInvest"
pageTwo.title = "AutoInvest Settings"
pageThree.title = "Overview"
setFirstViewController(0)
setNavigationColor(UIColor.blue)
equalSpaces = true
setSelectionBar(80, height: 3, color: .black)
}
}`
In the image, the highlight is a navigation bar.
I would love some help.
Thanks

I wonder if the issue could be because of the top view (that's embedded in what exactly?) - maybe try it in a VC that does not have it? I'm planning to do a rewrite of this, but I'm not sure when I am able to accomplish it.
My navigation bar is inside a view.
If you are talking about the top view, its a View I created solely for that design.
Where I want to tabs to be is on that highlighted navigation bar.