






#import "ParentDragLookCell.h"
#import "ShadowRowTapInfo.h"
#import "Masonry.h"
#import "UIColor+CarColor.h"

@implementation ParentDragLookCell

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

- (void)setModel:(ShadowRowTapInfo *)model
{
    _model = model;
    _armHailLabel.text = model.dueGolfMicro;
    _armHailLabel.font = [UIFont systemFontOfSize:model.titlePathTexturedGuideUseParental];
    _armHailLabel.textColor = [UIColor husbandExponentProminentSpecialRestingExpand:model.endPenCompileDarkenBreakGroup];
    self.backgroundColor = [[UIColor husbandExponentProminentSpecialRestingExpand:model.audiblePlatformCreamyDispatchPubScrolled] colorWithAlphaComponent:model.kinLicenseIntentFunkExponentsAppend];
    self.layer.cornerRadius = 2;
}

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

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

@end
