Files
GLEGram-iOS/submodules/LegacyComponents/Sources/TGAnimationBlockDelegate.m
T
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

38 lines
709 B
Objective-C

#import <LegacyComponents/TGAnimationBlockDelegate.h>
@implementation TGAnimationBlockDelegate
- (instancetype)initWithLayer:(CALayer *)layer
{
self = [super init];
if (self != nil)
{
_layer = layer;
}
return self;
}
- (void)animationDidStart:(CAAnimation *)__unused anim
{
}
- (void)animationDidStop:(CAAnimation *)__unused anim finished:(BOOL)flag
{
CALayer *layer = _layer;
if (flag)
{
if (_opacityOnCompletion != nil)
layer.opacity = [_opacityOnCompletion floatValue];
}
if (_removeLayerOnCompletion)
[layer removeFromSuperlayer];
if (_completion)
_completion(flag);
_completion = nil;
}
@end