UINavigationController

public extension UINavigationController
  • SwifterSwift: Pop ViewController with completion handler.

    Declaration

    Swift

    func popViewController(animated: Bool = true, _ completion: (() -> Void)? = nil)

    Parameters

    animated

    Set this value to true to animate the transition (default is true).

    completion

    optional completion handler (default is nil).

  • SwifterSwift: Push ViewController with completion handler.

    Declaration

    Swift

    func pushViewController(_ viewController: UIViewController, completion: (() -> Void)? = nil)

    Parameters

    viewController

    viewController to push.

    completion

    optional completion handler (default is nil).

  • SwifterSwift: Make navigation controller’s navigation bar transparent.

    Declaration

    Swift

    func makeTransparent(withTint tint: UIColor = .white)

    Parameters

    tint

    tint color (default is .white).