Dismissible
public protocol Dismissible : UIViewController
UIViewController
should conform to Dismissible
protocol to be used with DismissalMethodProvidingContextTask
.
-
Type of instance that
Dismissible
UIViewController
will provide on dismissal.Declaration
Swift
associatedtype DismissalTargetContext
-
Property to store the dismissal block provided by
DismissalMethodProvidingContextTask
Declaration
Swift
var dismissalBlock: ((Self, DismissalTargetContext, Bool, ((RoutingResult) -> Void)?) -> Void)? { get set }
-
dismissViewController(with:
Extension methodanimated: completion: ) Dismisses current
UIViewController
using dismissal block provided byDismissalMethodProvidingContextTask
Declaration
Swift
func dismissViewController(with context: DismissalTargetContext, animated: Bool, completion: ((RoutingResult) -> Void)? = nil)
Parameters
context
DismissalTargetContext
required to be dismissed.animated
Dismissal process should be animated if set to
true
completion
The completion block.
-
dismissViewController(animated:
Extension methodcompletion: ) Dismisses current
UIViewController
using dismissal block provided byDismissalMethodProvidingContextTask
Declaration
Swift
func dismissViewController(animated: Bool, completion: ((RoutingResult) -> Void)? = nil)
Parameters
animated
Dismissal process should be animated if set to
true
completion
The completion block.
-
dismissViewController(animated:
Extension methodcompletion: ) Dismisses current
UIViewController
using dismissal block provided byDismissalMethodProvidingContextTask
Declaration
Swift
func dismissViewController(animated: Bool, completion: ((RoutingResult) -> Void)? = nil)
Parameters
animated
Dismissal process should be animated if set to
true
completion
The completion block.