mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various fixes
This commit is contained in:
@@ -169,9 +169,13 @@ public final class AnimationNode : ASDisplayNode {
|
||||
}
|
||||
}
|
||||
|
||||
public func loop() {
|
||||
public func loop(count: Int? = nil) {
|
||||
if let animationView = self.animationView() {
|
||||
animationView.loopMode = .loop
|
||||
if let count = count {
|
||||
animationView.loopMode = .repeat(Float(count))
|
||||
} else {
|
||||
animationView.loopMode = .loop
|
||||
}
|
||||
animationView.play()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user