StaticTransitionAnimation
open class StaticTransitionAnimation : NSObject, TransitionAnimation
StaticTransitionAnimation can be used to realize static transition animations.
Note
Consider usingInteractiveTransitionAnimation instead, if possible, as it is as simple
to use. However, this class is helpful to make sure your transition animation is not mistaken to be
interactive, if your animation code does not fulfill the requirements of an interactive transition
animation.
-
Declaration
Swift
open var interactionController: PercentDrivenInteractionController? { get }
-
Creates a StaticTransitionAnimation to be used as presentation or dismissal transition animation in an
Animationobject.Declaration
Swift
public init(duration: TimeInterval, performAnimation: @escaping (_ context: UIViewControllerContextTransitioning) -> Void)
-
See UIViewControllerAnimatedTransitioning for further information.
Declaration
Swift
open func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeIntervalParameters
transitionContextThe context of the current transition.
Return Value
The duration of the animation as specified in the initializer.
-
See UIViewControllerAnimatedTransitioning for further information.
This method performs the animation as specified in the initializer.
Declaration
Swift
open func animateTransition(using transitionContext: UIViewControllerContextTransitioning)Parameters
transitionContextThe context of the current transition.
-
Declaration
Swift
open func start() -
Declaration
Swift
open func cleanup()
View on GitHub
StaticTransitionAnimation Class Reference