mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-07-31 00:17:26 +02:00
modded scinsta with additional features and fixes for recent instagram version
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// JGProgressHUDAnimation.m
|
||||
// JGProgressHUD
|
||||
//
|
||||
// Created by Jonas Gessner on 20.7.14.
|
||||
// Copyright (c) 2014 Jonas Gessner. All rights reserved.
|
||||
//
|
||||
|
||||
#import "JGProgressHUDAnimation.h"
|
||||
#import "JGProgressHUD.h"
|
||||
|
||||
@interface JGProgressHUD (Private)
|
||||
|
||||
- (void)animationDidFinish:(BOOL)presenting;
|
||||
|
||||
@end
|
||||
|
||||
@interface JGProgressHUDAnimation () {
|
||||
BOOL _presenting;
|
||||
}
|
||||
|
||||
@property (nonatomic, weak) JGProgressHUD *progressHUD;
|
||||
|
||||
@end
|
||||
|
||||
@implementation JGProgressHUDAnimation
|
||||
|
||||
#pragma mark - Initializers
|
||||
|
||||
+ (instancetype)animation {
|
||||
return [[self alloc] init];
|
||||
}
|
||||
|
||||
#pragma mark - Public methods
|
||||
|
||||
- (void)show {
|
||||
_presenting = YES;
|
||||
}
|
||||
|
||||
- (void)hide {
|
||||
_presenting = NO;
|
||||
}
|
||||
|
||||
- (void)animationFinished {
|
||||
[self.progressHUD animationDidFinish:_presenting];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user