ContextChecking

public protocol ContextChecking

UIViewController instance should conform to this protocol to be used with ClassWithContextFinder

Associated types

  • The context type associated with a ContextChecking UIViewController

    Declaration

    Swift

    associatedtype Context

Methods to implement

  • If this view controller is suitable for the Context instance provided. Example: It is already showing the provided context data or is willing to do so, then it should return true or false if not.

    Declaration

    Swift

    func isTarget(for context: Context) -> Bool

    Parameters

    context

    The Context instance provided to the Router