Skip to content

For the below code, Where I can give Tab bar items and also last scrolling view is get replicated twice.  #730

@KOSURUUDAYSAIKUMAR

Description

@KOSURUUDAYSAIKUMAR

let storyboard = UIStoryboard(name: "Main", bundle: nil)
let firstViewController = storyboard.instantiateViewController(withIdentifier: "FirstViewController")
let secondViewController = storyboard.instantiateViewController(withIdentifier: "SecondViewController")
let thirdViewController = storyboard.instantiateViewController(withIdentifier: "FirstViewController")
let fourViewController = storyboard.instantiateViewController(withIdentifier: "SecondViewController")

    // Initialize a FixedPagingViewController and pass
    // in the view controllers.
    let pagingViewController = PagingViewController(viewControllers: [
        firstViewController,
        secondViewController,
        thirdViewController, fourViewController
    ])

    // Make sure you add the PagingViewController as a child view
    // controller and constrain it to the edges of the view.
    addChild(pagingViewController)
    view.addSubview(pagingViewController.view)
    view.constrainToEdges(pagingViewController.view)
    pagingViewController.didMove(toParent: self)

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