From 4dbd70bcbca9f849a892c39e2d13698dedcd70ef Mon Sep 17 00:00:00 2001 From: onevcat Date: Mon, 11 Dec 2023 11:26:24 +0900 Subject: [PATCH] A wrong condition when checking timestamp --- Source/APNGKit/APNGImageView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/APNGKit/APNGImageView.swift b/Source/APNGKit/APNGImageView.swift index d61d7aa..ce3cff8 100644 --- a/Source/APNGKit/APNGImageView.swift +++ b/Source/APNGKit/APNGImageView.swift @@ -384,7 +384,7 @@ open class APNGImageView: PlatformView { // // Also check to ignore when `timestamp` is still 0. It is an app lifetime change from iOS 17 where an APNGImage // instance already exists when app starts. See #139. - if let timer = drivingTimer, timer.timestamp == 0 { + if let timer = drivingTimer, timer.timestamp != 0 { displayingFrameStarted = timer.timestamp } else { displayingFrameStarted = nil