Finder
public protocol Finder
An instance that conforms to the Finder
protocol will be used by the Router
to find out if some UIViewController
instance is integrated into the view controller stack
-
Type of
UIViewController
thatFinder
can findDeclaration
Swift
associatedtype ViewController : UIViewController
-
Type of
Context
object thatFinder
can deal withDeclaration
Swift
associatedtype Context
-
Returns the view controller instance if it is present in the stack.
Declaration
Swift
func findViewController(with context: Context) throws -> ViewController?
Return Value
The
UIViewController
instance that theRouter
is looking for, nil otherwise.
-
getViewController(with:
Extension method) Returns the view controller instance if it is present in the stack. Doesn’t throw any exceptions in case the search can not be performed.
Declaration
Swift
func getViewController(with context: Context) -> ViewController?
Return Value
The
UIViewController
instance that theRouter
is looking for, nil otherwise.
-
findViewController()
Extension methodReturns the view controller instance if it is present in the stack.
Declaration
Swift
func findViewController() throws -> ViewController?
Return Value
The
UIViewController
instance that theRouter
is looking for, nil otherwise. -
getViewController()
Extension methodReturns the view controller instance if it is present in the stack. Doesn’t throw any exceptions in case the search can not be performed.
Declaration
Swift
func getViewController() -> ViewController?
Return Value
The
UIViewController
instance that theRouter
is looking for, nil otherwise.
-
findViewController()
Extension methodReturns the view controller instance if it is present in the stack.
Declaration
Swift
func findViewController() throws -> ViewController?
Return Value
The
UIViewController
instance that theRouter
is looking for, nil otherwise. -
getViewController()
Extension methodReturns the view controller instance if it is present in the stack. Doesn’t throw any exceptions in case the search can not be performed.
Declaration
Swift
func getViewController() -> ViewController?
Return Value
The
UIViewController
instance that theRouter
is looking for, nil otherwise.