History

public class History

Provides navigation history logic.

  • Dismisses or pops one view controller or stack of view controllers.

    Declaration

    Swift

    public func back(steps: Int = 1, animated: Bool = true, completion: (() -> Void)? = nil)

    Parameters

    steps

    Number of steps to go back.

    animated

    Boolean, true for animated transition, otherwise false.

    completion

    Completion block.