InlineContextTask

public struct InlineContextTask<VC, C> : ContextTask where VC : UIViewController

InlineContextTask

NB: It may be used for the purpose of configuration testing, but then replaced with a strongly typed ContextTask instance.

Methods

  • Constructor

    Declaration

    Swift

    public init(_ completion: @escaping (VC, C) throws -> Void)

    Parameters

    completion

    the block to be called when InlineContextTask will be applied to the UIViewController instance.

  • Declaration

    Swift

    public func perform(on viewController: VC, with context: C) throws