mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various Improvements
This commit is contained in:
@@ -20,6 +20,13 @@ public final class ManagedAnimationState {
|
||||
|
||||
var relativeTime: Double = 0.0
|
||||
public var frameIndex: Int?
|
||||
public var position: CGFloat {
|
||||
if let frameIndex = frameIndex {
|
||||
return CGFloat(frameIndex) / CGFloat(frameCount)
|
||||
} else {
|
||||
return 0.0
|
||||
}
|
||||
}
|
||||
|
||||
public var executedCallbacks = Set<Int>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user