mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Voice Chat Scheduling
This commit is contained in:
@@ -145,6 +145,12 @@ open class ManagedAnimationNode: ASDisplayNode {
|
||||
}
|
||||
}
|
||||
|
||||
public var scale: CGFloat = 1.0 {
|
||||
didSet {
|
||||
self.imageNode.transform = CATransform3DMakeScale(self.scale, self.scale, 1.0)
|
||||
}
|
||||
}
|
||||
|
||||
public init(size: CGSize) {
|
||||
self.intrinsicSize = size
|
||||
|
||||
@@ -286,4 +292,11 @@ open class ManagedAnimationNode: ASDisplayNode {
|
||||
self.didTryAdvancingState = false
|
||||
self.updateAnimation()
|
||||
}
|
||||
|
||||
open override func layout() {
|
||||
super.layout()
|
||||
|
||||
self.imageNode.bounds = self.bounds
|
||||
self.imageNode.position = CGPoint(x: self.bounds.width / 2.0, y: self.bounds.height / 2.0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user