Skip to content

NavigationController.setViewControllers is animating even with animate: false #104

@ccampbell

Description

@ccampbell

I am new to iOS development so I’m not sure if this is a bug with your code or if I am doing something wrong. I am using Xcode 8.3.2 and testing on iOS 10.3.

I am trying to swap out the view in the UINavigationController using the setViewControllers method like in LeftViewController in your demo:

navigationController.setViewControllers([viewController], animated: false)
mainViewController.hideLeftView(animated: true, delay: 0.0, completionHandler: nil)

The animated parameter is set to false, but for some reason the content is still animating in. It is kind of harder to notice with a table view, but if you swap it out for another view it is more obvious. Here is a gif of what it looks like:

animation

You can see it is sliding down when it appears. Is there any way to avoid that?

Thanks

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