From 1304d5944f014b296e34b3bf680df0da46cd5fb6 Mon Sep 17 00:00:00 2001 From: cry Date: Mon, 14 Aug 2023 02:01:49 +0800 Subject: [PATCH] Fix can't display single frame gif --- Sources/Gifu/Classes/Animator.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Gifu/Classes/Animator.swift b/Sources/Gifu/Classes/Animator.swift index e3d70ed..0ae9a91 100644 --- a/Sources/Gifu/Classes/Animator.swift +++ b/Sources/Gifu/Classes/Animator.swift @@ -131,6 +131,8 @@ public class Animator { func startAnimating() { if frameStore?.isAnimatable ?? false { displayLink.isPaused = false + } else { + delegate.animatorHasNewFrame() } }