NavigationWitness
public struct NavigationWitness
Tempura navigation protocol witness.
-
@see Tempura.Show
Declaration
Swift
public func show( _ identifiersToShow: [RouteElementIdentifier], animated: Bool = false, context: Any? = nil ) -> Promise<Void>
-
@see Tempura.Show
Declaration
Swift
public func show( _ identifierToShow: RouteElementIdentifier, animated: Bool = false, context: Any? = nil ) -> Promise<Void>
-
@see Tempura.Show
Declaration
Swift
public func show<I>( _ identifiersToShow: [I], animated: Bool = false, context: Any? = nil ) -> Promise<Void> where I: RawRepresentable, I.RawValue == RouteElementIdentifier
-
@see Tempura.Show
Declaration
Swift
public func show<I>( _ identifiersToShow: I, animated: Bool = false, context: Any? = nil ) -> Promise<Void> where I: RawRepresentable, I.RawValue == RouteElementIdentifier
-
@see Tempura.Hide
Declaration
Swift
public func hide( _ identifierToHide: RouteElementIdentifier, animated: Bool = false, context: Any? = nil, atomic: Bool = false ) -> Promise<Void>
-
@see Tempura.Hide
Declaration
Swift
public func hide<I>( _ identifierToHide: I, animated: Bool = false, context: Any? = nil, atomic: Bool = false ) -> Promise<Void> where I: RawRepresentable, I.RawValue == RouteElementIdentifier
-
@see Tempura.Hide
Declaration
Swift
public func hide( animated: Bool = false, context: Any? = nil, atomic: Bool = false ) -> Promise<Void>
-
The live NavigationWitness.
Declaration
Swift
public static func live(dispatch: @escaping AnyDispatch) -> NavigationWitness
-
The mocked NavigationWitness.
Declaration
Swift
public static func mocked( appendTo navigations: NavigationRequests = [], showHandlers: [RouteElementIdentifier: (Bool, Any?) -> Promise<Void>] = [:], hideHandlers: [RouteElementIdentifier: (Bool, Any?, Bool) -> Promise<Void>] = [:] ) -> Self
-
The unimplemented NavigationWitness.
Declaration
Swift
public static func unimplemented( show: @escaping ([RouteElementIdentifier], Bool, Any?) -> Promise<Void> = { _, _, _ in fatalError() }, hide: @escaping (RouteElementIdentifier?, Bool, Any?, Bool) -> Promise<Void> = { _, _, _, _ in fatalError() } ) -> Self