Hibit_iOS/HiBit/Utils/HUD/DGActivityIndicatorView/Animations/DGActivityIndicatorAnimation.m
2024-06-07 11:41:02 +08:00

36 lines
1.0 KiB
Objective-C
Executable File

//
// DGActivityIndicatorAnimation.m
// DGActivityIndicatorExample
//
// Created by Danil Gontovnik on 8/10/16.
// Copyright © 2016 Danil Gontovnik. All rights reserved.
//
#import "DGActivityIndicatorAnimation.h"
@implementation DGActivityIndicatorAnimation
- (CABasicAnimation *)createBasicAnimationWithKeyPath:(NSString *)keyPath {
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:keyPath];
animation.removedOnCompletion = NO;
return animation;
}
- (CAKeyframeAnimation *)createKeyframeAnimationWithKeyPath:(NSString *)keyPath {
CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:keyPath];
animation.removedOnCompletion = NO;
return animation;
}
- (CAAnimationGroup *)createAnimationGroup {
CAAnimationGroup *animationGroup = [CAAnimationGroup animation];
animationGroup.removedOnCompletion = NO;
return animationGroup;
}
- (void)setupAnimationInLayer:(CALayer *)layer withSize:(CGSize)size tintColor:(UIColor *)tintColor {
}
@end