CATransaction
public extension CATransaction
Extension that wraps an action into CATransaction
.
When DefaultRouter
builds a complicated chain of animated modifications in the UIViewController
s stack
it might be necessary to wrap some actions into single CATransaction
.
Example: When UINavigationController
does pop, then push of the UIViewController
and then tries to
do some to it or find it with a Finder
. Then DefaultRouter
has to wait till the end of the animation.
-
Wraps
Action
in toCATransaction
Declaration
Swift
static func wrap<A>(_ action: A) -> CATransactionWrappedAction<A> where A : Action
Parameters
action
Action
instance -
Wraps
ContainerAction
in toCATransaction
Declaration
Swift
static func wrap<A>(_ action: A) -> CATransactionWrappedContainerAction<A> where A : ContainerAction
Parameters
action
ContainerAction
instance