DismissalMethodProvidingContextTask
public struct DismissalMethodProvidingContextTask<VC, C> : ContextTask where VC : Dismissible
DismissalMethodProvidingContextTask
allows to provide the way to dismiss the UIViewController
using a preset configuration.
The UIViewController
should conform to Dismissible
protocol and call Dismissible.dismissViewController(...)
method
when it needs to be dismissed to trigger the dismissal process implemented in DismissalMethodProvidingContextTask.init(...)
constructor.
-
Constructor
Declaration
Swift
public init(dismissalBlock: @escaping (VC, VC.DismissalTargetContext, Bool, ((RoutingResult) -> Void)?) -> Void)
Parameters
dismissalBlock
Block that will trigger the dismissal process when
Dismissible
UIViewController
callsDismissible.dismissViewController(...)
method. -
Declaration
Swift
public func perform(on viewController: VC, with context: C) throws