Skip to content

Commit

Permalink
A wrong condition when checking timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Dec 11, 2023
1 parent 2f56dc6 commit 4dbd70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/APNGKit/APNGImageView.swift
Expand Up @@ -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
Expand Down

0 comments on commit 4dbd70b

Please sign in to comment.