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

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

Open
KOSURUUDAYSAIKUMAR opened this issue Sep 12, 2024 · 0 comments

Comments

@KOSURUUDAYSAIKUMAR
Copy link

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)
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

1 participant