BaseTransition
open class BaseTransition
Base class for transition objects.
-
Should the transition be animated.
Declaration
Swift
open var isAnimated: Bool -
Object responsible for finding currently visible view in view hierarchy.
Declaration
Swift
public let viewFinder: ViewFinder? -
Creates animated transition object. If
finderargument is nil,Routeclass usesViewFinderpassed by theRouterthat performs the route. This is recommended behavior unless you want to customize view searching for this particular transition.Declaration
Swift
public init(finder: ViewFinder? = nil, isAnimated: Bool = true)Parameters
finderObject responsible for finding currently visible view in view hierarchy. Defaults to nil.
isAnimatedShould the transition be animated. Defaults to true.
-
If
isAnimatedflag is true, calls visibleView.transitionCoordinatoranimate(alongsideTransition:)method and calls completion block once transition has been completed. IfisAnimatedis false, just calls completion block and returns.Declaration
Swift
open func animateAlongsideTransition(with visibleView: ViewController?, isAnimated: Bool, completion: ((Bool) -> Void)?)Parameters
visibleViewView to perform transition on
isAnimatedwhether transition should be animated
completioncompletion block to call once transition is completed
View on GitHub
Install in Dash
BaseTransition Class Reference