CATransaction
public extension CATransaction
Extension that wraps an action into CATransaction.
When DefaultRouter builds a complicated chain of animated modifications in the UIViewControllers 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
Actionin toCATransactionDeclaration
Swift
@MainActor static func wrap<A>(_ action: A) -> CATransactionWrappedAction<A> where A : ActionParameters
actionActioninstance -
Wraps
ContainerActionin toCATransactionDeclaration
Swift
@MainActor static func wrap<A>(_ action: A) -> CATransactionWrappedContainerAction<A> where A : ContainerActionParameters
actionContainerActioninstance