






#import "CreatorHellmanCell.h"
#import "SerializeYetInfo.h"
#import "Masonry.h"
#import "UIColor+SumColor.h"

@implementation CreatorHellmanCell

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

- (void)setModel:(SerializeYetInfo *)model
{
    _model = model;
    _keyMailLabel.text = model.breakBalance;
    _keyMailLabel.font = [UIFont systemFontOfSize:model.kerningSpecificRedPrecisionDiscardRegular];
    _keyMailLabel.textColor = [UIColor subsetTeethFlipMidUsageAlong:model.ductilityArmMeasureValidityLookExistent];
    self.backgroundColor = [[UIColor subsetTeethFlipMidUsageAlong:model.retDraftMicroDitheredReportMusic] colorWithAlphaComponent:model.friendsMillionSpeakFixHormoneDecoder];
    self.layer.cornerRadius = 2;
}

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

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

@end
