mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Reorganized Project Changed Namescape
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
@end
|
||||
|
||||
@implementation LACharacterCell {
|
||||
LAAnimationView *animationView_;
|
||||
LOTAnimationView *animationView_;
|
||||
NSString *character_;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
return;
|
||||
}
|
||||
character_ = sanitizedCharacter;
|
||||
LAAnimationView *animationView = [LAAnimationView animationNamed:sanitizedCharacter];
|
||||
LOTAnimationView *animationView = [LOTAnimationView animationNamed:sanitizedCharacter];
|
||||
animationView_ = animationView;
|
||||
animationView_.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[self.contentView addSubview:animationView_];
|
||||
|
||||
@@ -22,7 +22,7 @@ typedef enum : NSUInteger {
|
||||
@property (nonatomic, assign) ViewBackgroundColor currentBGColor;
|
||||
@property (nonatomic, strong) UIToolbar *toolbar;
|
||||
@property (nonatomic, strong) UISlider *slider;
|
||||
@property (nonatomic, strong) LAAnimationView *laAnimation;
|
||||
@property (nonatomic, strong) LOTAnimationView *laAnimation;
|
||||
|
||||
@end
|
||||
|
||||
@@ -186,7 +186,7 @@ typedef enum : NSUInteger {
|
||||
self.laAnimation = nil;
|
||||
[self resetAllButtons];
|
||||
|
||||
self.laAnimation = [[LAAnimationView alloc] initWithContentsOfURL:[NSURL URLWithString:URL]];
|
||||
self.laAnimation = [[LOTAnimationView alloc] initWithContentsOfURL:[NSURL URLWithString:URL]];
|
||||
self.laAnimation.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[self.view addSubview:self.laAnimation];
|
||||
[self.view setNeedsLayout];
|
||||
@@ -197,7 +197,7 @@ typedef enum : NSUInteger {
|
||||
self.laAnimation = nil;
|
||||
[self resetAllButtons];
|
||||
|
||||
self.laAnimation = [LAAnimationView animationNamed:named];
|
||||
self.laAnimation = [LOTAnimationView animationNamed:named];
|
||||
self.laAnimation.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[self.view addSubview:self.laAnimation];
|
||||
[self.view setNeedsLayout];
|
||||
|
||||
@@ -129,14 +129,14 @@
|
||||
- (id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented
|
||||
presentingController:(UIViewController *)presenting
|
||||
sourceController:(UIViewController *)source {
|
||||
LAAnimationTransitionController *animationController = [[LAAnimationTransitionController alloc] initWithAnimationNamed:@"vcTransition1"
|
||||
LOTAnimationTransitionController *animationController = [[LOTAnimationTransitionController alloc] initWithAnimationNamed:@"vcTransition1"
|
||||
fromLayerNamed:@"outLayer"
|
||||
toLayerNamed:@"inLayer"];
|
||||
return animationController;
|
||||
}
|
||||
|
||||
- (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed {
|
||||
LAAnimationTransitionController *animationController = [[LAAnimationTransitionController alloc] initWithAnimationNamed:@"vcTransition2"
|
||||
LOTAnimationTransitionController *animationController = [[LOTAnimationTransitionController alloc] initWithAnimationNamed:@"vcTransition2"
|
||||
fromLayerNamed:@"outLayer"
|
||||
toLayerNamed:@"inLayer"];
|
||||
return animationController;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
@interface LottieRootViewController () <UITableViewDelegate, UITableViewDataSource>
|
||||
|
||||
@property (nonatomic, strong) LAAnimationView *lottieLogo;
|
||||
@property (nonatomic, strong) LOTAnimationView *lottieLogo;
|
||||
@property (nonatomic, strong) UIButton *lottieButton;
|
||||
@property (nonatomic, strong) UITableView *tableView;
|
||||
@property (nonatomic, strong) NSArray *tableViewItems;
|
||||
@@ -23,7 +23,7 @@
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self _buildDataSource];
|
||||
self.lottieLogo = [LAAnimationView animationNamed:@"LottieLogo1"];
|
||||
self.lottieLogo = [LOTAnimationView animationNamed:@"LottieLogo1"];
|
||||
self.lottieLogo.contentMode = UIViewContentModeScaleAspectFill;
|
||||
[self.view addSubview:self.lottieLogo];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user