diff --git a/Source/AnimatableImageView.swift b/Source/AnimatableImageView.swift index a819e2a..bad5a4c 100644 --- a/Source/AnimatableImageView.swift +++ b/Source/AnimatableImageView.swift @@ -5,7 +5,11 @@ public class AnimatableImageView: UIImageView { /// An `Animator` instance that holds the frames of a specific image in memory. var animator: Animator? /// A display link that keeps calling the `updateFrame` method on every screen refresh. - lazy var displayLink: CADisplayLink = CADisplayLink(target: self, selector: #selector(updateFrame)) + lazy var displayLink: CADisplayLink = { + let display = CADisplayLink(target: self, selector: #selector(updateFrame)) + display.paused = true + return display + }() /// The size of the frame cache. public var framePreloadCount = 50