Skip to content

Commit

Permalink
Merge pull request #141 from onevcat/fix/wrong-condition
Browse files Browse the repository at this point in the history
A wrong condition when checking timestamp
  • Loading branch information
onevcat authored Dec 11, 2023
2 parents 2f56dc6 + 4dbd70b commit 3a68bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/APNGKit/APNGImageView.swift
Original file line number Diff line number Diff line change
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 3a68bb0

Please sign in to comment.