







#import "SoftSizeIcyAndCell.h"
#define ourCost(due) __weak typeof(due) weak##due = due;
#define deviceBed(due) __strong typeof(due) due = weak##due;

@interface SoftSizeIcyAndCell()



@property (nonatomic, strong) NSTimer *shelf;

@property (nonatomic, assign) BOOL dueCapHertzWin;

@end

@implementation SoftSizeIcyAndCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _retriedSize = CGSizeMake(200, 40);
        _monthFailing = 4;
        _model = nil;
        _channelCount = 3;
        _watery = 0;
        _shadowLoopRace = 0;
        _status = MayOriginsDisorderAdditionWatchedUrgency;
        _dueCapHertzWin = NO;
        
    }
    return self;
}

- (void)ownMoireLawBetterSortingValue
{
    CGFloat baseHome = [[self.layer presentationLayer] frame].origin.x;
    CGFloat stoppedWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + stoppedWidth) / self.monthFailing;
    
    
    CGFloat panelPipeTime = stoppedWidth / speed;
    
    if (_shadowLoopRace > 0) {
        self.status = StrokedBoxResumedHoverAssistantPost;
        if (baseHome > -1 && baseHome < 1) {
            
            if (_dueCapHertzWin) { return;}
            _dueCapHertzWin = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_shadowLoopRace];
            [self performSelector:@selector(commitStatus) withObject:nil afterDelay:_shadowLoopRace - panelPipeTime];
        }
    }
}
- (void)commitStatus
{
    self.status = YearsHisMayTrailingWithinCommon;
}

- (void)entropyFlatPlaybackFutureSwipe:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = YearsHisMayTrailingWithinCommon;
    
    _shelf = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(ownMoireLawBetterSortingValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_shelf forMode:NSRunLoopCommonModes];
    
    
    ourCost(self);
    [UIView animateWithDuration:self.monthFailing delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        deviceBed(self);
        self->_status = YearsHisMayTrailingWithinCommon;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_shelf) {
            [self->_shelf invalidate];
            self->_shelf = nil;
        }
        
    }];
}

- (void)pause
{
    
    CFTimeInterval insetTime = [self.layer convertTime:CACurrentMediaTime() fromLayer:nil];
    
    
    self.layer.timeOffset = insetTime;
    
    
    self.layer.speed = 0;
}

- (void)resume
{
    
    CFTimeInterval insetTime = self.layer.timeOffset;
    
    CFTimeInterval solidBasalSalt = CACurrentMediaTime() - insetTime;
    
    self.layer.timeOffset = 0;
    
    self.layer.beginTime = solidBasalSalt;
    
    self.layer.speed = 1;
}


@end
