这是indexloc提供的服务,不要输入任何密码
Skip to content

Crash when I open the VC with the Swipe #36

@EduardoGin

Description

@EduardoGin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions