Voice Chat Scheduling

This commit is contained in:
Ilya Laktyushin
2021-04-07 04:33:05 +03:00
parent 693aa7f106
commit b9e52f27e3
54 changed files with 6278 additions and 5164 deletions

View File

@@ -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)
}
}