mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -695,6 +695,10 @@ public struct ComponentTransition {
|
||||
}
|
||||
|
||||
public func setSublayerTransform(layer: CALayer, transform: CATransform3D, completion: ((Bool) -> Void)? = nil) {
|
||||
if CATransform3DEqualToTransform(layer.sublayerTransform, transform) {
|
||||
completion?(true)
|
||||
return
|
||||
}
|
||||
switch self.animation {
|
||||
case .none:
|
||||
layer.sublayerTransform = transform
|
||||
|
||||
Reference in New Issue
Block a user