






#import "SodiumSignRedoCell.h"
#import "DashAbortSunInfo.h"
#import "Masonry.h"
#import "UIColor+AddColor.h"

@implementation SodiumSignRedoCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        self.clipsToBounds = YES;
        
        [self addSubview:self.combineLabel];
        
        [self.combineLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 4, 0, 0));
        }];
        
    }
    return self;
}

- (void)setModel:(DashAbortSunInfo *)model
{
    _model = model;
    _combineLabel.text = model.theTreeCache;
    _combineLabel.font = [UIFont systemFontOfSize:model.animateBrotherCreatePlusEllipsisFor];
    _combineLabel.textColor = [UIColor bleedAggregateDidCaretRecognizeStore:model.armourDeepExistentCropPressDietary];
    self.backgroundColor = [[UIColor bleedAggregateDidCaretRecognizeStore:model.plusAlcoholTaggingFireStalledCalories] colorWithAlphaComponent:model.dismissalHandlerPrettySmileCheckBuddy];
    self.layer.cornerRadius = 2;
}

- (void)entropyFlatPlaybackFutureSwipe:(void(^)(void))animations completion:(void(^)(BOOL))completion {
    DashAbortSunInfo *info = (DashAbortSunInfo *)_model;
    if ([info isKindOfClass:[DashAbortSunInfo class]] && info.describeListenersAlongHerUniform > 0) {
        self.transform = CGAffineTransformMakeTranslation(-info.describeListenersAlongHerUniform, 0);
    }
    [super entropyFlatPlaybackFutureSwipe:animations completion:completion];
}

- (UILabel *)combineLabel {
    if (!_combineLabel) {
        _combineLabel = [[UILabel alloc] init];
        _combineLabel.backgroundColor = [UIColor clearColor];
        _combineLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _combineLabel;
}

@end
