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

Crash when I open the VC with the Swipe #36

Open
EduardoGin opened this issue Apr 11, 2019 · 2 comments
Open

Crash when I open the VC with the Swipe #36

EduardoGin opened this issue Apr 11, 2019 · 2 comments

Comments

@EduardoGin
Copy link

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
Screenshot 2019-04-11 at 09 16 52

@fortmarek
Copy link
Owner

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.

@EduardoGin
Copy link
Author

EduardoGin commented Apr 12, 2019

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.

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