UINavigationController

  • SwifterSwift: Pop ViewController with completion handler.

    Declaration

    Swift

    public func popViewController(_ completion: (() -> Void)? = nil)

    Parameters

    completion

    optional completion handler (default is nil).

  • SwifterSwift: Push ViewController with completion handler.

    Declaration

    Swift

    public 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

    public func makeTransparent(withTint tint: UIColor = .white)

    Parameters

    tint

    tint color (default is .white).