MockNavigationController

public class MockNavigationController: UINavigationController

Mock navigation view controller

  • Checks if a view controller has been pushed (can be used only once … obviously)

    Declaration

    Swift

    public var didPushViewController: Bool = false
  • Last pushed view controller

    Declaration

    Swift

    public var lastPushedViewController: UIViewController? = nil
  • Helps testing if view controller has been pushed. It updates the stack right away

    Declaration

    Swift

    public override func pushViewController(_ viewController: UIViewController, animated: Bool)
  • Helps testing if view controller has been popped. It updates the stack right away

    Declaration

    Swift

    public override func popViewController(animated: Bool) -> UIViewController?