CGImageSourceAnimationBlock
The block to execute for each frame of an image animation.
Declaration
typealias CGImageSourceAnimationBlock = (Int, CGImage, UnsafeMutablePointer<Bool>) -> VoidParameters
- index:
The index of the image in the file.
- image:
The image to display.
- stop:
A Boolean flag set to
falseon input. To stop the animation, set the value of this parameter totrue.
Discussion
During the animation of an image, the system calls this block for each successive frame of the animation. Use this block to display the new image in your app’s interface, and to update any additional details.