snapshotAndReplace(applyToAllLayers:)
Stops the current animation and uses the current value of that animation as the blend value for the transition to the new animation.
Declaration
static func snapshotAndReplace(applyToAllLayers: Bool = true) -> AnimationHandoffTypeDiscussion
If applyToAllLayers is false, the handoff only replaces current animations that have the same layerId as the blendLayerOffset parameter in the playAnimation() call.
If applyToAllLayers is true, the handoff replaces all animations regardless of the layer.